From 61b07bc9a664d6a88b85aae99f9756d7569688a9 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 2 Jan 2021 10:22:51 +0100 Subject: PyEval_InitThreads only for older than 3.9 --- 3rdparty/python-console/modified/pyinterpreter.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3rdparty/python-console/modified/pyinterpreter.cc b/3rdparty/python-console/modified/pyinterpreter.cc index bf6d9620..c222c9ad 100644 --- a/3rdparty/python-console/modified/pyinterpreter.cc +++ b/3rdparty/python-console/modified/pyinterpreter.cc @@ -122,7 +122,9 @@ void pyinterpreter_preinit() void pyinterpreter_initialize() { +#if PY_VERSION_HEX < 0x03090000 PyEval_InitThreads(); +#endif m_threadState = PyEval_SaveThread(); PyEval_AcquireThread(m_threadState); -- cgit v1.2.3