]> SALOME platform Git repositories - plugins/gmshplugin.git/commitdiff
Salome HOME
#30450 [CEA][Windows][Forum] SHAPER activation after GMSHPLUGIN call V9_9_1b1
authorrnv <rnv@opencascade.com>
Tue, 2 Aug 2022 09:16:59 +0000 (12:16 +0300)
committerrnv <rnv@opencascade.com>
Tue, 2 Aug 2022 09:16:59 +0000 (12:16 +0300)
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);