fixxed log directory path
This commit is contained in:
parent
22e6071240
commit
9835186a37
11
config.py
11
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')
|
||||
|
||||
# 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')
|
||||
Loading…
x
Reference in New Issue
Block a user