13 lines
440 B
Python
13 lines
440 B
Python
# 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'
|
|
|
|
# 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') |