mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Import threading on python context startup on main thread for debuggers
This commit is contained in:
@@ -301,6 +301,13 @@ void PythonContext::GlobalInit()
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
||||
// try to import threading library to make debuggers happier
|
||||
if(!PyImport_ImportModule("threading"))
|
||||
{
|
||||
// ignore a failed import
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
||||
// sysobj = sys
|
||||
PyObject *sysobj = PyDict_GetItemString(main_dict, "sys");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user