From 6c3eee0f0ed8e82692c2615eb114e8c230779141 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Thu, 10 Jan 2019 21:06:02 -0500 Subject: [PATCH] Update conf.py --- lbrynet/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lbrynet/conf.py b/lbrynet/conf.py index bf90b0b3b..4637ca223 100644 --- a/lbrynet/conf.py +++ b/lbrynet/conf.py @@ -594,6 +594,10 @@ class Config: if not os.path.isdir(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): """ 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.ensure_data_dir() settings.ensure_wallet_dir() + settings.ensure_download_dir()