Make runtime provenance operator script directly executable
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Jens
2026-08-23 23:26:06 +02:00
parent 2f15da97c3
commit de8beae183
@@ -10,6 +10,13 @@ import sys
import tempfile
from typing import Any
# Direct execution from /app/scripts sets sys.path[0] to that directory rather
# than the container application root. Keep the operator command self-contained
# without requiring an undocumented PYTHONPATH override.
APP_ROOT = Path(__file__).resolve().parents[1]
if str(APP_ROOT) not in sys.path:
sys.path.insert(0, str(APP_ROOT))
from app.db.session import SessionLocal
from app.services.data_contract_validation import (
PYTORCH_MODEL_CONTRACT_KEY,