see https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads
}
PySys_SetArgv(pyArgc, changed_pyArgv);
}
+#if PY_VERSION_HEX < 0x03070000
PyEval_InitThreads(); /* Create (and acquire) the interpreter lock (for threads)*/
+#endif
PyEval_SaveThread(); /* Release the thread state */
//here we do not have the Global Interpreter Lock
}
{
if(!getSess()->isLaunched())
getSess()->launch();
+#if PY_VERSION_HEX < 0x03070000
if(!PyEval_ThreadsInitialized())
PyEval_InitThreads();
+#endif
connect(getThread(),SIGNAL(finished()),this,SLOT(evaluationFinished()));
setEnabled(false);
getThread()->start();