forked from LBRYCommunity/lbry-sdk
Update conf.py
This commit is contained in:
parent
4c23add193
commit
6c3eee0f0e
1 changed files with 5 additions and 0 deletions
|
@ -594,6 +594,10 @@ class Config:
|
||||||
if not os.path.isdir(self.wallet_dir):
|
if not os.path.isdir(self.wallet_dir):
|
||||||
os.makedirs(self.wallet_dir)
|
os.makedirs(self.wallet_dir)
|
||||||
|
|
||||||
|
def ensure_download_dir(self):
|
||||||
|
if not os.path.isdir(self.download_dir):
|
||||||
|
os.makedirs(self.download_dir)
|
||||||
|
|
||||||
def get_log_filename(self):
|
def get_log_filename(self):
|
||||||
"""
|
"""
|
||||||
Return the log file for this platform.
|
Return the log file for this platform.
|
||||||
|
@ -671,3 +675,4 @@ def initialize_settings(load_conf_file: typing.Optional[bool] = True,
|
||||||
settings['wallet_dir'] = settings.wallet_dir or settings.default_wallet_dir
|
settings['wallet_dir'] = settings.wallet_dir or settings.default_wallet_dir
|
||||||
settings.ensure_data_dir()
|
settings.ensure_data_dir()
|
||||||
settings.ensure_wallet_dir()
|
settings.ensure_wallet_dir()
|
||||||
|
settings.ensure_download_dir()
|
||||||
|
|
Loading…
Reference in a new issue