From d94e5fbf25b2f36edbfeb7bf31a8548f6a2072c2 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Tue, 29 Jun 2021 16:15:50 +0200 Subject: [PATCH] Fix in app --- paramecio2/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paramecio2/app.py b/paramecio2/app.py index 01cc13e..99505bd 100644 --- a/paramecio2/app.py +++ b/paramecio2/app.py @@ -29,6 +29,11 @@ def start_app(): app.config.update( JSON_SORT_KEYS=config.json_sort_keys ) + + if hasattr(config, 'SERVER_NAME'): + application_root=config.application_root + SERVER_NAME=config.server_name + ) workdir=os.getcwd() arr_module_path={}