From 8da22cbd5ed39a9c5f9fc608804009bafbd9b1ac Mon Sep 17 00:00:00 2001 From: rr- Date: Fri, 3 Aug 2018 21:04:23 +0200 Subject: [PATCH] server: fix paths to config --- server/szurubooru/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/szurubooru/config.py b/server/szurubooru/config.py index 3ddbea5..b2f593d 100644 --- a/server/szurubooru/config.py +++ b/server/szurubooru/config.py @@ -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())