From: rnv Date: Tue, 2 Aug 2022 09:16:59 +0000 (+0300) Subject: #30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call X-Git-Tag: V9_9_1b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=13b796728259fd70a17f5bca0dd531c850634106;p=plugins%2Fgmshplugin.git #30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call --- 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);