From 640db41555984ab8266b3b09ddc4abf8302947af Mon Sep 17 00:00:00 2001 From: Job Evers Date: Mon, 17 Oct 2016 19:58:04 -0500 Subject: [PATCH] only need lbrycrdd_path when using lbrycrdd --- lbrynet/lbrynet_daemon/Daemon.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index 86d5ff3ca..ded04a7d1 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -336,14 +336,6 @@ class Daemon(jsonrpc.JSONRPC): self.set_wallet_attributes() - if os.name != 'nt': - # TODO: are we still using this? - lbrycrdd_path_conf = os.path.join(os.path.expanduser("~"), ".lbrycrddpath.conf") - if not os.path.isfile(lbrycrdd_path_conf): - f = open(lbrycrdd_path_conf, "w") - f.write(str(self.lbrycrdd_path)) - f.close() - self.created_data_dir = False if not os.path.exists(self.db_dir): os.mkdir(self.db_dir) @@ -396,6 +388,13 @@ class Daemon(jsonrpc.JSONRPC): self.wallet_dir = os.path.join(os.path.expanduser("~"), ".lbrycrd") self.lbrycrd_conf = os.path.join(self.wallet_dir, "lbrycrd.conf") self.wallet_conf = os.path.join(self.wallet_dir, "lbrycrd.conf") + if os.name != 'nt': + # TODO: are we still using this? + lbrycrdd_path_conf = os.path.join(os.path.expanduser("~"), ".lbrycrddpath.conf") + if not os.path.isfile(lbrycrdd_path_conf): + f = open(lbrycrdd_path_conf, "w") + f.write(str(self.lbrycrdd_path)) + f.close() def _responseFailed(self, err, call): log.debug(err.getTraceback())