Skip to content

Commit

Permalink
app_python3: handle deprecated PyEval_InitThreads()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Feb 11, 2021
1 parent 2afebf3 commit ca37f92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/app_python3/app_python3_mod.c
Expand Up @@ -346,7 +346,9 @@ int apy_load_script(void)
}

Py_Initialize();
#if PY_VERSION_HEX < 0x03070000
PyEval_InitThreads();
#endif
myThreadState = PyThreadState_Get();

PY_GIL_ENSURE;
Expand Down

0 comments on commit ca37f92

Please sign in to comment.