feat: 简化配置,支持 daemon 运行

This commit is contained in:
amtoaer
2023-11-22 21:53:37 +08:00
parent 6f8b4afa1c
commit 5cc429e353
5 changed files with 47 additions and 41 deletions

View File

@@ -1,6 +1,10 @@
from pathlib import Path
import os
DEFAULT_CONFIG_PATH = Path(__file__).parent / "config.json"
DEFAULT_CONFIG_PATH = (
Path(__file__).parent / "config.json"
if not os.getenv("TESTING")
else Path(__file__).parent / "config.test.json"
)
FFMPEG_COMMAND = "ffmpeg"