mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-04 07:33:31 +00:00
Create config folders if they do not exist
This commit is contained in:
parent
152c45b6ef
commit
b57157a16d
@ -61,10 +61,12 @@ def start_ui():
|
||||
|
||||
if deluge.common.windows_check():
|
||||
if options.config:
|
||||
os.makedirs(options.config)
|
||||
logfile = os.path.join(options.config, "deluge.log")
|
||||
else:
|
||||
os.makedirs(deluge.common.get_default_config_dir())
|
||||
logfile = deluge.common.get_default_config_dir("deluge.log")
|
||||
|
||||
|
||||
sys.stdout = open(logfile, "wb")
|
||||
sys.stderr = sys.stdout
|
||||
sys.stdin = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user