only create dirs if they dont exist - fixes crash
This commit is contained in:
parent
4f50438b61
commit
ceaa06d1ad
|
@ -61,9 +61,11 @@ def start_ui():
|
|||
|
||||
if deluge.common.windows_check():
|
||||
if options.config:
|
||||
if not os.path.exists(options.config):
|
||||
os.makedirs(options.config)
|
||||
logfile = os.path.join(options.config, "deluge.log")
|
||||
else:
|
||||
if not os.path.exists(deluge.common.get_default_config_dir()):
|
||||
os.makedirs(deluge.common.get_default_config_dir())
|
||||
logfile = deluge.common.get_default_config_dir("deluge.log")
|
||||
|
||||
|
|
Loading…
Reference in New Issue