From cca4331ac4cdd17904b8c3a04da10e50fb72504c Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 4 Jul 2016 19:34:51 -0400 Subject: [PATCH] create lbrycrddpath.conf if it doesnt exist --- lbrynet/__init__.py | 2 +- lbrynet/lbrynet_daemon/LBRYDaemon.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lbrynet/__init__.py b/lbrynet/__init__.py index 4b2e3ebd9..b1c305fe3 100644 --- a/lbrynet/__init__.py +++ b/lbrynet/__init__.py @@ -4,5 +4,5 @@ log = logging.getLogger(__name__) logging.getLogger(__name__).addHandler(logging.NullHandler()) log.setLevel(logging.ERROR) -version = (0, 3, 0, 2) +version = (0, 3, 1) __version__ = ".".join([str(x) for x in version]) diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index 90575f328..fe72f63b2 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -320,6 +320,13 @@ class LBRYDaemon(jsonrpc.JSONRPC): else: self.wallet_dir = os.path.join(os.path.expanduser("~"), ".lbryum") + if os.name != 'nt': + lbrycrdd_path_conf = os.path.join(os.path.expanduser("~"), ".lbrycrddpath.conf") + if not os.path.isfile(lbrycrdd_path_conf): + f = open(lbrycrdd_path_conf) + f.write(self.lbrycrdd_path) + f.close() + self.created_data_dir = False if not os.path.exists(self.db_dir): os.mkdir(self.db_dir)