Salome HOME
#30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call
[plugins/gmshplugin.git] / src / GMSHPlugin / GMSHPlugin_Mesher.cxx
index 7fb7e56ff1e7dc9b89ce943eb03e9a76baf434f4..c2014cdc58d6ca9d4a90056a0e9a8a968ec03ca9 100644 (file)
@@ -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);