diff --git a/app/routes/main.py b/app/routes/main.py index d81fb5c..5e134e4 100644 --- a/app/routes/main.py +++ b/app/routes/main.py @@ -32,7 +32,7 @@ def serve_config_file(filename): @main_bp.route('/load_config/') def load_config(filename): global current_config - path = os.path.join(app.config['CONFIG_DIR'], filename) + path = os.path.join(current_app.config['CONFIG_DIR'], filename) if not os.path.exists(path): logger.error(f"Config nicht gefunden: {path}")