create lbrycrddpath.conf if it doesnt exist
This commit is contained in:
parent
5972dbb6a7
commit
cca4331ac4
2 changed files with 8 additions and 1 deletions
|
@ -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])
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue