Support in-distribution config file

This commit is contained in:
Darko Poljak 2018-03-01 20:12:21 +01:00
commit 378c7f6a89
3 changed files with 6 additions and 1 deletions

View file

@ -275,7 +275,10 @@ class Configuration(metaclass=Singleton):
os.environ.get('XDG_CONFIG_HOME',
os.path.expanduser('~/.config/cdist')),
_config_basename)
default_config_files = (_global_config_file, _local_config_file, )
_dist_config_file = os.path.join(
os.path.abspath(os.path.join(os.path.dirname(cdist.__file__), "conf")),
'cdist.cfg')
default_config_files = (_global_config_file, _dist_config_file, _local_config_file, )
ENV_VAR_CONFIG_FILE = 'CDIST_CONFIG_FILE'
VERBOSITY_VALUES = _VERBOSITY_VALUES