Files
geointel/scripts/yolo_preflight.py
Jens faeb58ef6d
GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
Initial public release
2026-08-31 21:56:53 +02:00

24 lines
681 B
Python

from __future__ import annotations
import importlib.util
from pathlib import Path
from types import ModuleType
def load_backend_script() -> ModuleType:
script = Path(__file__).resolve().parents[1] / "backend" / "scripts" / "yolo_preflight.py"
spec = importlib.util.spec_from_file_location("backend_yolo_preflight", script)
if spec is None or spec.loader is None:
raise RuntimeError(f"Could not load YOLO preflight implementation from {script}")
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
return module
_impl = load_backend_script()
main = _impl.main
if __name__ == "__main__":
raise SystemExit(main())