From a9221090c77c1d7e1528eef3802f4db4e94f4788 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 2 Aug 2022 12:16:59 +0300 Subject: [PATCH] #30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call --- src/GMSHPlugin/GMSHPlugin_Mesher.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx index 7fb7e56..c2014cd 100644 --- a/src/GMSHPlugin/GMSHPlugin_Mesher.cxx +++ b/src/GMSHPlugin/GMSHPlugin_Mesher.cxx @@ -1098,7 +1098,9 @@ bool GMSHPlugin_Mesher::Compute() #if GMSH_MAJOR_VERSION >=4 && GMSH_MINOR_VERSION >=8 SetMaxThreadsGmsh(); #endif - GmshInitialize(); + //RNV: to avoid modification of PATH and PYTHONPATH + char* argv[] = {"-noenv"}; + GmshInitialize(1,argv); SetGmshOptions(); _gModel = new GModel(); mymsg msg(_gModel); -- 2.39.2