From 30c110126b9f9a33651a913e841faf83e0b9a888 Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 7 Aug 2014 17:07:40 +0400 Subject: [PATCH] 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. --- src/PyConsole/PyConsole_Interp.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.2