Aduc-sdr commited on
Commit
ce491b7
verified
1 Parent(s): e3d97f4

Update aduc_orchestrator.py

Browse files
Files changed (1) hide show
  1. 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
- # Adicione o caminho para a pasta 'engineers' ao sys.path
23
- sys.path.append(os.path.abspath("./engineers")) # Assumindo que a pasta 'engineers' est谩 no mesmo diret贸rio do script
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.