[Core] Ensure absolute dirpath for config dir

This commit is contained in:
Calum Lind 2017-03-29 21:22:33 +01:00
parent aa28d73f47
commit a727ee67bc

View File

@ -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