write to the file that's supposed to be written to

This commit is contained in:
Jack 2016-07-04 20:19:04 -04:00
parent 0a3f81e364
commit 4c2ab23c1f

View file

@ -321,8 +321,8 @@ class LBRYDaemon(jsonrpc.JSONRPC):
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 = open(lbrycrdd_path_conf, "w")
f.write(str(self.lbrycrdd_path))
f.close()
self.created_data_dir = False