mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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:
|
if not directory:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# Ensure absolute dirpath
|
||||||
|
directory = os.path.abspath(directory)
|
||||||
|
|
||||||
log.info('Setting config directory to: %s', directory)
|
log.info('Setting config directory to: %s', directory)
|
||||||
if not os.path.exists(directory):
|
if not os.path.exists(directory):
|
||||||
# Try to create the config folder if it doesn't exist
|
# Try to create the config folder if it doesn't exist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue