Support runtime report inside container layout
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-18 00:56:37 +02:00
parent ee8419c9be
commit d8dc66c558
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
BACKEND = ROOT / "backend"
sys.path.insert(0, str(BACKEND))
IMPORT_ROOT = ROOT if (ROOT / "app").is_dir() else BACKEND
sys.path.insert(0, str(IMPORT_ROOT))
from app.db.session import SessionLocal # noqa: E402
from app.models import AnalysisRun, Job # noqa: E402