From: akl Date: Thu, 7 Aug 2014 13:07:40 +0000 (+0400) Subject: Fix of 0022630: EDF 8445 - using multiprocessing with the Python console of SALOME... X-Git-Tag: V7_5_0a1~26^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=30c110126b9f9a33651a913e841faf83e0b9a888;p=modules%2Fgui.git Fix of 0022630: EDF 8445 - using multiprocessing with the Python console of SALOME 7.4.0. Copying of main dictionary was added by 'ad3a201' commit in order to have a new context of Python interpreter for each study, but it leads to the situation that '__main__' module in sys.modules dictionary is not updated with a new functions and variables. Now dictionary copying has been removed to fix the mentioned bug, but we have a common Python context for all studies in the Salome session. --- diff --git a/src/PyConsole/PyConsole_Interp.cxx b/src/PyConsole/PyConsole_Interp.cxx index c4b208180..d230e9b12 100644 --- a/src/PyConsole/PyConsole_Interp.cxx +++ b/src/PyConsole/PyConsole_Interp.cxx @@ -77,7 +77,6 @@ bool PyConsole_Interp::initContext() PyErr_Print(); return false; } - PyObject* global_dict = PyModule_GetDict(m); // get interpreter dictionnary context - _context = PyDict_Copy(global_dict); + _context = PyModule_GetDict(m); // get interpreter dictionnary context return true; }