]> SALOME platform Git repositories - modules/gui.git/blobdiff - tools/PyInterp/src/PyInterp_Interp.cxx
Salome HOME
For future compatibility with python 3.9.
[modules/gui.git] / tools / PyInterp / src / PyInterp_Interp.cxx
index 4620bb37392a2c84b0ca10e1054c002af3d63c35..6f0344630a54308ec02c555ee538b0859e813a9a 100644 (file)
@@ -273,7 +273,9 @@ void PyInterp_Interp::initPython()
     Py_Initialize(); // Initialize the interpreter
     PySys_SetArgv(_argc, changed_argv);
 
+#if PY_VERSION_HEX < 0x03070000
     PyEval_InitThreads(); // Create (and acquire) the Python global interpreter lock (GIL)
+#endif
     PyEval_SaveThread(); // release safely GIL
   }
 }