[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:
|
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…
x
Reference in New Issue
Block a user