Support in-distribution config file
This commit is contained in:
parent
2dfbd89c5e
commit
378c7f6a89
3 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue