Commit ·
703dfdc
1
Parent(s): 38611c2
Final polish for structural checks: add server/__init__.py and fix import paths
Browse files- server/app.py +5 -0
server/app.py
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
from fastapi import FastAPI, HTTPException
|
| 3 |
from fastapi.responses import HTMLResponse
|
| 4 |
from env.environment import CustomerSupportEnv
|
|
|
|
| 1 |
import os
|
| 2 |
+
import sys
|
| 3 |
+
|
| 4 |
+
# Ensure root directory is in path so we can import 'env'
|
| 5 |
+
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
| 6 |
+
|
| 7 |
from fastapi import FastAPI, HTTPException
|
| 8 |
from fastapi.responses import HTMLResponse
|
| 9 |
from env.environment import CustomerSupportEnv
|