]> SALOME platform Git repositories - modules/gui.git/commit
Salome HOME
+ if(!builtinmodule) // PAL18041: deepcopy function don't work in Salome
authoreap <eap@opencascade.com>
Wed, 20 Feb 2008 10:06:24 +0000 (10:06 +0000)
committereap <eap@opencascade.com>
Wed, 20 Feb 2008 10:06:24 +0000 (10:06 +0000)
commitc98dd38f9fae2a4219294bf3a009b542f7c672f9
tree0642a82907c4ecbc0dadacce0954800439802e69
parentd64b154bbb135694f711804d0d6aee238daaeacb
+  if(!builtinmodule) // PAL18041: deepcopy function don't work in Salome
+  {
+    //builtinmodule is static member of PyInterp class
+    //If it is not NULL (initialized to the builtin module of the main interpreter
+    //all the sub interpreters will have the same builtin
+    //_interp is a static member and is the main interpreter
+    //The first time we initialized it to the builtin of main interpreter
+    builtinmodule=PyDict_GetItemString(_interp->modules, "__builtin__");
+  }
src/PythonConsole/PythonConsole_PyInterp.cxx