fixxes over codex

This commit is contained in:
2026-02-16 20:38:51 +01:00
parent fee6d40b04
commit 37747d0614
5 changed files with 51 additions and 20 deletions
+9 -6
View File
@@ -4,11 +4,14 @@ import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-key-change-me'
# Alle Pfade **relativ zum Arbeitsverzeichnis** (wo app.py liegt)
CONFIG_DIR = 'configs'
LOG_DIR = 'logs'
SOUNDS_DIR = 'sounds'
# Basisverzeichnis des Projekts (absolut, robust gegen anderes CWD)
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# Alle Pfade absolut auf Basis des Projekt-Roots
CONFIG_DIR = os.path.join(BASE_DIR, 'configs')
LOG_DIR = os.path.join(BASE_DIR, 'logs')
SOUNDS_DIR = os.path.join(BASE_DIR, 'sounds')
# Optional: absolute Pfade, falls du später Docker o.ä. nutzt
# CONFIG_DIR = os.path.join(os.path.dirname(__file__), 'configs')
# CONFIG_DIR = os.path.join(os.path.dirname(__file__), 'configs')