mkcontrol-app/config.py
2026-02-16 20:38:51 +01:00

18 lines
611 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# config.py zentral, im Projekt-Root
import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev-key-change-me'
# 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')