]> SALOME platform Git repositories - modules/kernel.git/blobdiff - src/Container/Container_init_python.cxx
Salome HOME
updated copyright message
[modules/kernel.git] / src / Container / Container_init_python.cxx
index 25607af34e1495dfa9a48592e02f8cf307f96560..93f54ac044c8beba8968ca30861e11047b01db54 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -202,8 +202,9 @@ void KERNEL_PYTHON::init_python(int argc, char **argv)
   script += "del _custom_except_hook, sys\n";
   PyRun_SimpleString(script.c_str());
   // VSR (22/09/2016): end of workaround
+#if PY_VERSION_HEX < 0x03070000
   PyEval_InitThreads(); // Create (and acquire) the interpreter lock
-
+#endif
   // Create python objects to capture stdout and stderr
   PyObject* _vout=(PyObject*)ContainerNewPyStdOut( false ); // stdout
   PyObject* _verr=(PyObject*)ContainerNewPyStdOut( true );  // stderr