]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #32377: gmsh python api linux windows
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 28 Nov 2022 13:28:24 +0000 (14:28 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 28 Nov 2022 13:28:24 +0000 (14:28 +0100)
products/env_scripts/gmsh.py

index 0bab6676013a7d6c64e4c403bd44cbd8cae563dc..fe039f3139b18e16e2c32f5f7f466578c6c0a600 100644 (file)
@@ -9,9 +9,10 @@ def set_env(env, prereq_dir, version):
   env.set('GMSH_ROOT_DIR', prereq_dir)
   if platform.system() == "Windows" :
     env.append('PATH',os.path.join(prereq_dir,'bin'))
-    env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib'))
+    env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'bin'))
   else:
     env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib'))
+    env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib'))
 
 def set_nativ_env(env):
     env.set('GMSH_ROOT_DIR', '/usr')