mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-06-05 07:40:33 +08:00
feat: 简化配置,支持 daemon 运行
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user