Update aduc_orchestrator.py
Browse files- aduc_orchestrator.py +16 -6
aduc_orchestrator.py
CHANGED
|
@@ -19,13 +19,23 @@ from PIL import Image, ImageOps
|
|
| 19 |
import sys
|
| 20 |
import os
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
# Agora voc锚 pode importar os m贸dulos
|
| 26 |
-
from deformes4D import Deformes4DEngine
|
| 27 |
-
from deformes2D_thinker import deformes2d_thinker_singleton
|
| 28 |
-
from deformes3D import deformes3d_engine_singleton
|
| 29 |
|
| 30 |
|
| 31 |
# The logger is configured in app.py; here we just get the instance.
|
|
|
|
| 19 |
import sys
|
| 20 |
import os
|
| 21 |
|
| 22 |
+
script_dir = os.path.dirname(os.path.abspath(__file__))
|
| 23 |
+
engineers_path = os.path.join(script_dir, "engineers")
|
| 24 |
+
|
| 25 |
+
print(f"Script directory: {script_dir}")
|
| 26 |
+
print(f"Engineers path: {engineers_path}")
|
| 27 |
+
print(f"sys.path before import: {sys.path}")
|
| 28 |
+
|
| 29 |
+
sys.path.insert(0, engineers_path)
|
| 30 |
+
|
| 31 |
+
print(f"sys.path after insert: {sys.path}")
|
| 32 |
+
|
| 33 |
+
try:
|
| 34 |
+
from engineers.deformes4D import Deformes4DEngine
|
| 35 |
+
print("Module deformes4D imported successfully!")
|
| 36 |
+
except ModuleNotFoundError as e:
|
| 37 |
+
print(f"Error importing deformes4D: {e}")
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
# The logger is configured in app.py; here we just get the instance.
|