Patch #671459: Invoke import hooks in Py_NewInterpreter.
This commit is contained in:
parent
f196a0a4dd
commit
d7ceb222bd
|
@ -338,6 +338,7 @@ Py_NewInterpreter(void)
|
|||
PySys_SetPath(Py_GetPath());
|
||||
PyDict_SetItemString(interp->sysdict, "modules",
|
||||
interp->modules);
|
||||
_PyImportHooks_Init();
|
||||
initmain();
|
||||
if (!Py_NoSiteFlag)
|
||||
initsite();
|
||||
|
|
Loading…
Reference in New Issue