forked from platypush/platypush
Support ./config.yaml
as a config file location.
This commit is contained in:
parent
fa1364d854
commit
0a3d6add83
1 changed files with 2 additions and 0 deletions
|
@ -36,9 +36,11 @@ class Config:
|
|||
"""
|
||||
|
||||
# Default config file locations:
|
||||
# - current directory
|
||||
# - $HOME/.config/platypush/config.yaml
|
||||
# - /etc/platypush/config.yaml
|
||||
_cfgfile_locations = [
|
||||
os.path.join(os.path.abspath('.'), 'config.yaml'),
|
||||
os.path.join(os.path.expanduser('~'), '.config', 'platypush', 'config.yaml'),
|
||||
os.path.join(os.sep, 'etc', 'platypush', 'config.yaml'),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue