load local config

This commit is contained in:
j 2019-10-10 17:02:03 +01:00
parent e1e5912423
commit 49508b6ff0

View file

@ -17,7 +17,7 @@ os.chdir(base)
name = os.path.basename(base) name = os.path.basename(base)
config = join(base, 'config.jsonc') config = join(base, 'config.jsonc')
if os.path.exists(config): if os.path.exists(config):
with open('/srv/pandora/northeast/config.jsonc') as fd: with open(config) as fd:
name = ox.jsonc.load(fd)['site']['id'] name = ox.jsonc.load(fd)['site']['id']
for root, folders, files in os.walk(join(base, 'static')): for root, folders, files in os.walk(join(base, 'static')):