Skip to content

Commit d7ceb22

Browse files
committed
Patch #671459: Invoke import hooks in Py_NewInterpreter.
1 parent f196a0a commit d7ceb22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/pythonrun.c

+1
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ Py_NewInterpreter(void)
338338
PySys_SetPath(Py_GetPath());
339339
PyDict_SetItemString(interp->sysdict, "modules",
340340
interp->modules);
341+
_PyImportHooks_Init();
341342
initmain();
342343
if (!Py_NoSiteFlag)
343344
initsite();

0 commit comments

Comments
 (0)