Files
gaokao-volunteer-system/data/cli_compat_channel_fallback.py

23 lines
656 B
Python
Raw Normal View History

2026-06-17 22:18:57 +08:00
"""Thin import shim for `scripts/gaokao-channel-fallback`.
`data.channel_sync.monitor.main` already accepts the subcommand
(`check` / `manual-template`) directly, so this shim is just a
forwarder with project-root sys.path bootstrap.
"""
from __future__ import annotations
import sys
from pathlib import Path
if str(Path(__file__).resolve().parent.parent) not in sys.path:
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
from data.channel_sync.monitor import main as _monitor_main # noqa: E402
def main(argv: list[str] | None = None) -> int:
if argv is None:
argv = sys.argv[1:]
return _monitor_main(list(argv))