nagasurendra commited on
Commit
a6cbbf3
·
verified ·
1 Parent(s): 477f0b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import os
2
  import sys
3
 
4
- # Add the project directory to the Python path
5
- current_dir = os.path.dirname(os.path.abspath(__file__))
6
- if current_dir not in sys.path:
7
- sys.path.append(current_dir)
8
 
9
  from routes.auth import login, sign_up
10
  from routes.menu import load_menu
 
1
  import os
2
  import sys
3
 
4
+ # Dynamically add the root project directory to Python's module search path
5
+ project_root = os.path.dirname(os.path.abspath(__file__))
6
+ if project_root not in sys.path:
7
+ sys.path.insert(0, project_root)
8
 
9
  from routes.auth import login, sign_up
10
  from routes.menu import load_menu