Skip to content

Commit f35a78a

Browse files
authored
Update PythonEnvironment regarding GIL deprecation (#440)
The GIL is initialized by `Py_Initialize()` since Python 3.7 (called earlier)
1 parent 6caa11d commit f35a78a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Plugin/src/SofaPython3/PythonEnvironment.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ void PythonEnvironment::Init()
193193
static const PyThreadState* init = PyEval_SaveThread(); (void) init;
194194
}
195195

196-
PyEval_InitThreads();
197-
198196
// Required for sys.path, used in addPythonModulePath().
199197
executePython([]{ PyRun_SimpleString("import sys");});
200198

0 commit comments

Comments
 (0)