forked from aniani/vim
updated for version 7.3.212
Problem: With Python 3.2 ":py3" fails. Solution: Move PyEval_InitThreads() to after Py_Initialize(). (Roland Puntaier) Check abiflags in configure. (Andreas Behr)
This commit is contained in:
@@ -547,14 +547,13 @@ Python3_Init(void)
|
||||
Py_SetPythonHome(PYTHON3_HOME);
|
||||
#endif
|
||||
|
||||
/* initialise threads */
|
||||
PyEval_InitThreads();
|
||||
|
||||
#if !defined(MACOS) || defined(MACOS_X_UNIX)
|
||||
Py_Initialize();
|
||||
#else
|
||||
PyMac_Initialize();
|
||||
#endif
|
||||
/* initialise threads, must be after Py_Initialize() */
|
||||
PyEval_InitThreads();
|
||||
|
||||
#ifdef DYNAMIC_PYTHON3
|
||||
get_py3_exceptions();
|
||||
|
Reference in New Issue
Block a user