diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-17 12:00:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-17 12:00:48 +0300 |
commit | d377b1fe762c24ee74805ea8c1f666f121399698 (patch) | |
tree | 7f86f255bea2c5ac9560f64a570b6f306db31f6e /source/blender/python/intern | |
parent | 76f99bd13ae1359d8256d5c34936a97d833b2c8c (diff) |
Cleanup: remove deprecated PyEval_InitThreads use
Deprecated in Python 3.7
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index dbbda012181..ce2d9bca973 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -329,6 +329,7 @@ void BPY_python_start(int argc, const char **argv) Py_IgnoreEnvironmentFlag = !py_use_system_env; Py_NoUserSiteDirectory = !py_use_system_env; + /* Initialize Python (also acquires lock). */ Py_Initialize(); // PySys_SetArgv(argc, argv); /* broken in py3, not a huge deal */ @@ -346,9 +347,6 @@ void BPY_python_start(int argc, const char **argv) Py_DECREF(py_argv); } - /* Initialize thread support (also acquires lock) */ - PyEval_InitThreads(); - # ifdef WITH_FLUID /* Required to prevent assertion error, see: * https://stackoverflow.com/questions/27844676 */ |