fixxes over codex
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user