From 2892ee7367b2abb6f47bc7dd8c62f8cb7fce8e18 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Mon, 28 Nov 2022 14:28:24 +0100 Subject: [PATCH] spns #32377: gmsh python api linux windows --- products/env_scripts/gmsh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/products/env_scripts/gmsh.py b/products/env_scripts/gmsh.py index 0bab667..fe039f3 100644 --- a/products/env_scripts/gmsh.py +++ b/products/env_scripts/gmsh.py @@ -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') -- 2.39.2