ictlogin/run_ictlogin.py

18 lines
328 B
Python

#!/usr/bin/env python3
"""Run the ICT login CLI directly from a source checkout."""
from pathlib import Path
import sys
ROOT = Path(__file__).resolve().parent
SRC = ROOT / "src"
if str(SRC) not in sys.path:
sys.path.insert(0, str(SRC))
from ictlogin.cli import main # noqa: E402
if __name__ == "__main__":
main()