From 9835186a37e4115973594ec8338c4715d92460b5 Mon Sep 17 00:00:00 2001 From: oberon Date: Mon, 16 Feb 2026 14:14:17 +0100 Subject: [PATCH] fixxed log directory path --- config.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index 83dc1cf..d9e2413 100644 --- a/config.py +++ b/config.py @@ -1,8 +1,13 @@ # config.py import os +# Projekt-Root ermitteln (wo app.py liegt) +PROJECT_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-key-change-me' - CONFIG_DIR = os.path.join(os.path.dirname(__file__), '..', 'configs') - LOG_DIR = os.path.join(os.path.dirname(__file__), '..', 'logs') - SOUNDS_DIR = os.path.join(os.path.dirname(__file__), '..', 'sounds') \ No newline at end of file + + # Alle Pfade absolut und vom Projekt-Root aus + CONFIG_DIR = os.path.join(PROJECT_ROOT, 'configs') + LOG_DIR = os.path.join(PROJECT_ROOT, 'logs') + SOUNDS_DIR = os.path.join(PROJECT_ROOT, 'sounds') \ No newline at end of file