RoyAalekh commited on
Commit
1c71ac8
·
1 Parent(s): 93bc38b

Update app.py to include ROOT path

Browse files

Add ROOT path to sys.path for module resolution

Files changed (1) hide show
  1. scheduler/dashboard/app.py +6 -0
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