]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
DILL: windows: no need to extend PYTHONPATH since uses pip
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 18 Oct 2022 12:37:56 +0000 (14:37 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 18 Oct 2022 12:37:56 +0000 (14:37 +0200)
products/env_scripts/dill.py

index c723c16127f0a620c567740a8703b8d85d8ffb9e..9af1da55e008edfc36533ec7faf9301c243f9dbe 100644 (file)
@@ -1,10 +1,15 @@
 #!/usr/bin/env python
 import os.path
+import platform
 
 def set_env(env, prereq_dir, version):
     env.set('DILL_ROOT_DIR', prereq_dir)
-    env.set('OT_VERSION',version)
+    env.set('DILL_VERSION',version)
     pyver = 'python' + env.get('PYTHON_VERSION')
-    env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
+    if platform.system() == "Windows" :
+        pass
+    else:
+        env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
+
 def set_nativ_env(env):
     pass