修复容器迁移脚本导入路径

This commit is contained in:
yml2213
2026-07-25 10:33:37 +08:00
parent 32f9eadfdb
commit 2c4ff6901f
+3
View File
@@ -18,6 +18,9 @@ PROJECT_ROOT = Path(__file__).resolve().parents[1]
DEFAULT_SOURCE = PROJECT_ROOT / "data" / "web.db"
IGNORED_SOURCE_TABLES = {"alembic_version"}
if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
def parse_args() -> argparse.Namespace:
"""解析迁移参数。"""