refactor(layout): 源码迁入 src/,项目根迁到 SceneMarshal

This commit is contained in:
ali
2026-11-20 14:31:34 +08:00
parent b804897029
commit e6a4113ca0
41 changed files with 129 additions and 128 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ def resolve_media_root(cfg: configparser.ConfigParser) -> Path:
CONFIG_PATH = Path(
os.environ.get(
"SCENERENAME_CONFIG",
"/home/ali/docker/tools/python/media/src/config.ini",
"/home/ali/docker/tools/python/SceneMarshal/src/config.ini",
)
)
@@ -61,7 +61,7 @@ HK_TW = {"TW", "HK"}
TMDB_CACHE_PATH = Path(
os.environ.get(
"SCENERENAME_TMDB_CACHE",
"/home/ali/docker/tools/python/media/src/tmdb_data.json",
"/home/ali/docker/tools/python/SceneMarshal/src/tmdb_data.json",
)
)
@@ -122,7 +122,7 @@ def tmdb_id_of(name: str) -> str | None:
def _store():
"""延迟导入共享缓存模块(本脚本跑在宿主机,需把 media/src 加进 sys.path)。"""
"""延迟导入共享缓存模块(本脚本跑在宿主机,需把 src 加进 sys.path)。"""
src = str(CONFIG_PATH.parent)
if src not in sys.path:
sys.path.insert(0, src)