summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-01-22 09:00:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-01-22 09:00:38 (GMT)
commitd7ceb222bd19ea25b0b4d234623df0a9f73c96b5 (patch)
tree6a2a3b1c9370921d6d47b9f3d4b54c600bb3f60c /Python
parentf196a0a4dde4327dddda49c194ca5cc28c0db1f5 (diff)
downloadcpython-d7ceb222bd19ea25b0b4d234623df0a9f73c96b5.zip
cpython-d7ceb222bd19ea25b0b4d234623df0a9f73c96b5.tar.gz
cpython-d7ceb222bd19ea25b0b4d234623df0a9f73c96b5.tar.bz2
Patch #671459: Invoke import hooks in Py_NewInterpreter.
Diffstat (limited to 'Python')
-rw-r--r--Python/pythonrun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index fba3ade..3aa63e9 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();