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