We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 000a18e + f388dc1 commit 38d1d11Copy full SHA for 38d1d11
src/backend/app.py
@@ -1,7 +1,12 @@
1
-# app.py
+#!/usr/bin/env python
2
+import os
3
+import sys
4
+
5
+# Add the parent directory (the one that contains the "src" folder) to sys.path.
6
+# This allows absolute imports such as "from src.backend.middleware.health_check" to work
7
+sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")))
8
import asyncio
9
import logging
-import os
10
import uuid
11
from typing import List, Optional
12
from src.backend.middleware.health_check import HealthCheckMiddleware
0 commit comments