summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-01-22 09:00:38 +0000
committerMartin v. Löwis <martin@v.loewis.de>2003-01-22 09:00:38 +0000
commit397dd1074780ac9fb40f2a0cf08894288ad3cf19 (patch)
tree3236e93d3e9cb9a1c4b37a6fdaad44f431f041db /Python/pythonrun.c
parent7461a19373764f7045aa7ddcfcc020278740c6cc (diff)
downloadcpython-397dd1074780ac9fb40f2a0cf08894288ad3cf19.tar.gz
Patch #671459: Invoke import hooks in Py_NewInterpreter.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index fba3ade800..3aa63e9432 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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();