ibraheem007 commited on
Commit
ea39984
·
verified ·
1 Parent(s): f8cd87f

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +9 -2
src/streamlit_app.py CHANGED
@@ -1,8 +1,15 @@
1
  import sys
2
  import os
3
 
4
- # Add the root directory to Python path
5
- sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
 
 
 
 
 
 
 
6
 
7
  import streamlit as st
8
  import re
 
1
  import sys
2
  import os
3
 
4
+ # Add both root and src to Python path
5
+ current_dir = os.path.dirname(os.path.abspath(__file__))
6
+ root_dir = os.path.dirname(current_dir)
7
+ sys.path.insert(0, root_dir) # Add root first
8
+ sys.path.insert(0, current_dir) # Then add src
9
+
10
+ print(f"🔧 DEBUG: Python paths: {sys.path}")
11
+ print(f"🔧 DEBUG: Current dir: {current_dir}")
12
+ print(f"🔧 DEBUG: Root dir: {root_dir}")
13
 
14
  import streamlit as st
15
  import re