server: fix paths to config
This commit is contained in:
parent
70385cfe3d
commit
8da22cbd5e
1 changed files with 3 additions and 3 deletions
|
@ -46,10 +46,10 @@ def docker_config() -> Dict:
|
|||
|
||||
|
||||
def read_config() -> Dict:
|
||||
with open('../config.yaml.dist') as handle:
|
||||
with open('config.yaml.dist') as handle:
|
||||
ret = yaml.load(handle.read())
|
||||
if os.path.exists('../config.yaml'):
|
||||
with open('../config.yaml') as handle:
|
||||
if os.path.exists('config.yaml'):
|
||||
with open('config.yaml') as handle:
|
||||
ret = merge(ret, yaml.load(handle.read()))
|
||||
if os.path.exists('/.dockerenv'):
|
||||
ret = merge(ret, docker_config())
|
||||
|
|
Loading…
Reference in a new issue