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.
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;
}