mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
PyEval_InitThreads should go after Py_Initialize in Python 3
This commit is contained in:
parent
3403c8748e
commit
c1273d5684
@ -81,9 +81,9 @@ P3DPythonRun(const char *program_name, const char *archive_file,
|
|||||||
|
|
||||||
// Initialize Python. It appears to be important to do this before
|
// Initialize Python. It appears to be important to do this before
|
||||||
// we open the pipe streams and spawn the thread, below.
|
// we open the pipe streams and spawn the thread, below.
|
||||||
PyEval_InitThreads();
|
|
||||||
Py_SetProgramName((char *)_program_name.c_str());
|
Py_SetProgramName((char *)_program_name.c_str());
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
|
PyEval_InitThreads();
|
||||||
PySys_SetArgv(_py_argc, _py_argv);
|
PySys_SetArgv(_py_argc, _py_argv);
|
||||||
|
|
||||||
// Open the error output before we do too much more.
|
// Open the error output before we do too much more.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user