]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/ydfx_gui/YDFXGUIPushButtons.cxx
Salome HOME
For future compatibility with python 3.9.
[modules/yacs.git] / src / ydfx_gui / YDFXGUIPushButtons.cxx
index 6f4b541a18b14587d061b9541e97ad053e14bbd7..76189f33f1231dc480b45ac044a6a7224db67d65 100644 (file)
@@ -304,8 +304,10 @@ void YDFXGUIRunningButton::runEvaluation()
 {
   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();