Skip to content

Commit 38d1d11

Browse files
Merge pull request #67 from microsoft/psl-app-fixed
fix: App fixed
2 parents 000a18e + f388dc1 commit 38d1d11

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/backend/app.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
# app.py
1+
#!/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__), "..", "..")))
28
import asyncio
39
import logging
4-
import os
510
import uuid
611
from typing import List, Optional
712
from src.backend.middleware.health_check import HealthCheckMiddleware

0 commit comments

Comments
 (0)