fixxes main.py .config

This commit is contained in:
oberon 2026-02-16 20:16:38 +01:00
parent 831433ec82
commit f201f62e71

View File

@ -32,7 +32,7 @@ def serve_config_file(filename):
@main_bp.route('/load_config/<filename>')
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}")