mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 03:55:43 +00:00
[Core] Ensure absolute dirpath for config dir
This commit is contained in:
parent
aa28d73f47
commit
a727ee67bc
@ -46,6 +46,9 @@ class _ConfigManager(object):
|
||||
if not directory:
|
||||
return False
|
||||
|
||||
# Ensure absolute dirpath
|
||||
directory = os.path.abspath(directory)
|
||||
|
||||
log.info('Setting config directory to: %s', directory)
|
||||
if not os.path.exists(directory):
|
||||
# Try to create the config folder if it doesn't exist
|
||||
|
Loading…
x
Reference in New Issue
Block a user