[Bf-blender-cvs] [d377b1fe762] master: Cleanup: remove deprecated PyEval_InitThreads use

Campbell Barton noreply at git.blender.org
Thu Sep 17 11:02:02 CEST 2020


Commit: d377b1fe762c24ee74805ea8c1f666f121399698
Author: Campbell Barton
Date:   Thu Sep 17 19:00:23 2020 +1000
Branches: master
https://developer.blender.org/rBd377b1fe762c24ee74805ea8c1f666f121399698

Cleanup: remove deprecated PyEval_InitThreads use

Deprecated in Python 3.7

===================================================================

M	source/blender/python/intern/bpy_interface.c

===================================================================

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 */



More information about the Bf-blender-cvs mailing list