mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 03:24:54 +00:00
[Core] Ensure absolute dirpath for config dir
This commit is contained in:
parent
aa28d73f47
commit
a727ee67bc
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue