NexusInstruments commited on
Commit
0c0c724
·
verified ·
1 Parent(s): c445b59

Update pages/Omnieye.py

Browse files
Files changed (1) hide show
  1. pages/Omnieye.py +8 -0
pages/Omnieye.py CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
  import re
3
  from utils.file_utils import keyword_search
 
1
+ import sys, os
2
+
3
+ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
4
+ UTILS_DIR = os.path.join(BASE_DIR, "utils")
5
+
6
+ if UTILS_DIR not in sys.path:
7
+ sys.path.insert(0, UTILS_DIR)
8
+
9
  import streamlit as st
10
  import re
11
  from utils.file_utils import keyword_search