fixxes main.py .config
This commit is contained in:
parent
831433ec82
commit
f201f62e71
@ -32,7 +32,7 @@ def serve_config_file(filename):
|
|||||||
@main_bp.route('/load_config/<filename>')
|
@main_bp.route('/load_config/<filename>')
|
||||||
def load_config(filename):
|
def load_config(filename):
|
||||||
global current_config
|
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):
|
if not os.path.exists(path):
|
||||||
logger.error(f"Config nicht gefunden: {path}")
|
logger.error(f"Config nicht gefunden: {path}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user