Spaces:
Sleeping
Sleeping
Update actions/actions.py
Browse files- actions/actions.py +5 -4
actions/actions.py
CHANGED
@@ -13,13 +13,14 @@ import os
|
|
13 |
import sys
|
14 |
import openai
|
15 |
|
16 |
-
# Add "/actions" to the sys.path
|
17 |
-
|
18 |
-
|
19 |
|
|
|
20 |
for path in sys.path:
|
21 |
print(path)
|
22 |
-
|
23 |
# Import search_content.py from /actions folder
|
24 |
from search_content import main_search
|
25 |
|
|
|
13 |
import sys
|
14 |
import openai
|
15 |
|
16 |
+
# Add "/app/actions" to the sys.path
|
17 |
+
actions_path = os.path.abspath("/app/actions")
|
18 |
+
sys.path.insert(0, actions_path)
|
19 |
|
20 |
+
print("-#-System-path-#-")
|
21 |
for path in sys.path:
|
22 |
print(path)
|
23 |
+
print("-#-END-OF-System-path-#-")
|
24 |
# Import search_content.py from /actions folder
|
25 |
from search_content import main_search
|
26 |
|