Update app.py
Browse files
app.py
CHANGED
@@ -1,21 +1,18 @@
|
|
1 |
import os
|
2 |
import sys
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
-
nested_project_root = os.path.join(project_root, "nagasurendra", "restaurant-ordering-system")
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
sys.path.insert(0, nested_project_root)
|
11 |
|
12 |
-
|
13 |
-
sys.path.insert(0, project_root)
|
14 |
-
|
15 |
-
# Debugging: Verify the paths
|
16 |
print("DEBUG: sys.path =", sys.path)
|
17 |
-
|
18 |
-
|
|
|
|
|
19 |
|
20 |
# Import modules
|
21 |
try:
|
|
|
1 |
import os
|
2 |
import sys
|
3 |
|
4 |
+
# Add the current working directory to Python's module search path
|
5 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
6 |
|
7 |
+
if current_dir not in sys.path:
|
8 |
+
sys.path.insert(0, current_dir)
|
|
|
9 |
|
10 |
+
# Debugging: Check Python's module search path
|
|
|
|
|
|
|
11 |
print("DEBUG: sys.path =", sys.path)
|
12 |
+
|
13 |
+
# Debugging: Verify the presence of directories and files
|
14 |
+
print("DEBUG: Does 'routes' directory exist? ", os.path.exists(os.path.join(current_dir, "routes")))
|
15 |
+
print("DEBUG: Does 'auth.py' exist in 'routes'? ", os.path.exists(os.path.join(current_dir, "routes", "auth.py")))
|
16 |
|
17 |
# Import modules
|
18 |
try:
|