Support runtime report inside container layout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user