]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
bos #38877: [EDF] Extend PYTHONPATH in EFICAS_TOOLS
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 16 Nov 2023 10:29:02 +0000 (11:29 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 16 Nov 2023 10:29:02 +0000 (11:29 +0100)
products/env_scripts/EFICAS_TOOLS.py

index e3427987dc668b028dad9139a022801a23b030e1..e7bb62b888fe32a6abce5413f60e938ff5629ddf 100644 (file)
@@ -19,9 +19,9 @@ def set_env(env, prereq_dir, version):
     for d in ld:
         env.append('PYTHONPATH', os.path.join(prereq_dir, d))
         env.append(LD_LIBRARY_PATH, os.path.join(prereq_dir, d))
-                                                                                                                        
+    # bos #38877
+    pyver = 'python' + env.get('PYTHON_VERSION')
+    env.append('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver,'site-packages', 'salome'))
+
 def set_nativ_env(env):
-    env.set('EFICAS_TOOLS_ROOT_DIR', '/usr')   # update for cmake
-    env.set('EFICAS_TOOLS_ROOT', '/usr')
-    env.set('EFICAS_TOOLS_LIB_DIR', '/usr/lib')
     pass