1 diff -ruN ParaView/VTK/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx ParaView_new/VTK/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx
2 --- ParaView/VTK/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx 2019-05-28 08:19:55.673481437 +0200
3 +++ ParaView_new/VTK/Utilities/PythonInterpreter/vtkPythonInterpreter.cxx 2019-05-28 08:08:21.000000000 +0200
5 vtkPythonInterpreter::InitializedOnce = true;
7 #ifdef VTK_PYTHON_FULL_THREADSAFE
8 - PyEval_InitThreads(); // safe to call this multiple time
9 - PyEval_SaveThread(); // release GIL
10 + if(PyEval_ThreadsInitialized() == 0)
12 + PyEval_InitThreads(); // safe to call this multiple time
13 + PyEval_SaveThread(); // release GIL
17 // HACK: Calling PyRun_SimpleString for the first time for some reason results in