Spaces:
Sleeping
Sleeping
Update app.py to include ROOT path
Browse filesAdd ROOT path to sys.path for module resolution
scheduler/dashboard/app.py
CHANGED
|
@@ -5,6 +5,12 @@ Launch with: uv run court-scheduler dashboard
|
|
| 5 |
"""
|
| 6 |
|
| 7 |
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
import subprocess
|
| 10 |
from pathlib import Path
|
|
|
|
| 5 |
"""
|
| 6 |
|
| 7 |
from __future__ import annotations
|
| 8 |
+
import sys
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
|
| 11 |
+
ROOT = Path("/app") # absolute, unambiguous
|
| 12 |
+
if str(ROOT) not in sys.path:
|
| 13 |
+
sys.path.insert(0, str(ROOT))
|
| 14 |
|
| 15 |
import subprocess
|
| 16 |
from pathlib import Path
|