]> granicus.if.org Git - python/commitdiff
Patch #671459: Invoke import hooks in Py_NewInterpreter.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 22 Jan 2003 09:00:38 +0000 (09:00 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 22 Jan 2003 09:00:38 +0000 (09:00 +0000)
Python/pythonrun.c

index fba3ade8003a03396fe1a9fc81fb65ff0cca8e71..3aa63e9432d3690f3eba871f007e12d277a4fa34 100644 (file)
@@ -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();