Salome HOME
projects
/
modules
/
yacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
For future compatibility with python 3.9.
[modules/yacs.git]
/
src
/
runtime
/
RuntimeSALOME.cxx
diff --git
a/src/runtime/RuntimeSALOME.cxx
b/src/runtime/RuntimeSALOME.cxx
index fb2727afab1af3048d961dfbd6fd4d137f9f5c38..99f57715231a2a5b4b84e12db0a0226586217b13 100644
(file)
--- a/
src/runtime/RuntimeSALOME.cxx
+++ b/
src/runtime/RuntimeSALOME.cxx
@@
-314,7
+314,9
@@
void RuntimeSALOME::init(long flags, int argc, char* argv[])
}
PySys_SetArgv(pyArgc, changed_pyArgv);
}
}
PySys_SetArgv(pyArgc, changed_pyArgv);
}
+#if PY_VERSION_HEX < 0x03070000
PyEval_InitThreads(); /* Create (and acquire) the interpreter lock (for threads)*/
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
}
PyEval_SaveThread(); /* Release the thread state */
//here we do not have the Global Interpreter Lock
}