mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Create config folders if they do not exist
This commit is contained in:
parent
152c45b6ef
commit
b57157a16d
1 changed files with 3 additions and 1 deletions
|
@ -61,8 +61,10 @@ 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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue