mirror of
https://github.com/python/cpython.git
synced 2025-01-19 15:05:15 +08:00
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
Block a user