diff --git a/src/Gui/Command.cpp b/src/Gui/Command.cpp index fd02c5dab6..deb1dcc65b 100644 --- a/src/Gui/Command.cpp +++ b/src/Gui/Command.cpp @@ -908,6 +908,7 @@ PythonCommand::~PythonCommand() const char* PythonCommand::getResource(const char* sName) const { + Base::PyGILStateLocker lock; PyObject* pcTemp; // get the "MenuText" resource string @@ -1303,6 +1304,7 @@ const char* PythonGroupCommand::getHelpUrl(void) const const char* PythonGroupCommand::getResource(const char* sName) const { + Base::PyGILStateLocker lock; PyObject* pcTemp; // get the "MenuText" resource string