Fix configuration file location

This commit is contained in:
sparrowhawk 2020-04-15 17:10:33 +02:00 committed by Timothée Floure
parent 0805fac7e9
commit 742163e38c

View file

@ -274,7 +274,8 @@ class Configuration(metaclass=Singleton):
os.path.isfile(_local_config_file))): os.path.isfile(_local_config_file))):
_local_config_file = os.path.join( _local_config_file = os.path.join(
os.environ.get('XDG_CONFIG_HOME', os.environ.get('XDG_CONFIG_HOME',
os.path.expanduser('~/.config/cdist')), os.path.expanduser('~/.config/')),
'cdist',
_config_basename) _config_basename)
_dist_config_file = os.path.join( _dist_config_file = os.path.join(
os.path.abspath(os.path.join(os.path.dirname(cdist.__file__), "conf")), os.path.abspath(os.path.join(os.path.dirname(cdist.__file__), "conf")),