shortcuts

This commit is contained in:
2026-04-02 22:07:11 -03:00
parent 8c1138c746
commit 0b5575f3b3
4 changed files with 306 additions and 17 deletions

View File

@@ -1,3 +1,4 @@
import os
from pathlib import Path
APP_ID = "com.cht.StreamAgent"
@@ -6,7 +7,7 @@ APP_NAME = "CHT"
# Default session data location — in project dir for easy clearing
PROJECT_DIR = Path(__file__).resolve().parent.parent
DATA_DIR = PROJECT_DIR / "data"
SESSIONS_DIR = DATA_DIR / "sessions"
SESSIONS_DIR = Path(os.environ.get("CHT_SESSIONS_DIR", DATA_DIR / "sessions"))
# Stream defaults
STREAM_HOST = "0.0.0.0"