X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2FRuntimeSALOME.cxx;h=99f57715231a2a5b4b84e12db0a0226586217b13;hb=a56cc6bd1a9d98794979c2b9910d278e06400756;hp=b23ac0b9a13cb745f3d3c1463a117fb73ac13314;hpb=82003807192e97411fa5d3ad24f9f6c88d1a551b;p=modules%2Fyacs.git diff --git a/src/runtime/RuntimeSALOME.cxx b/src/runtime/RuntimeSALOME.cxx index b23ac0b9a..99f577152 100644 --- a/src/runtime/RuntimeSALOME.cxx +++ b/src/runtime/RuntimeSALOME.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2006-2019 CEA/DEN, EDF R&D +// Copyright (C) 2006-2021 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -314,7 +314,9 @@ void RuntimeSALOME::init(long flags, int argc, char* argv[]) } 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 }