Skip to content

Commit

Permalink
AppManager: Python interpreter needs the Python GIL
Browse files Browse the repository at this point in the history
fixes segfault
  • Loading branch information
devernay committed Jul 6, 2021
1 parent f93038f commit 66c12a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/AppManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3499,7 +3499,7 @@ AppManager::launchPythonInterpreter()
throw std::runtime_error("AppInstance::launchPythonInterpreter(): interpretPythonScript(" + s + " failed!");
}

// PythonGILLocker pgl;
PythonGILLocker pgl;
#if PY_MAJOR_VERSION >= 3
// Python 3
Py_Main(1, &_imp->commandLineArgsWide[0]);
Expand Down

0 comments on commit 66c12a0

Please sign in to comment.