diff Python/pythonrun.c @ 27340:8b53b0ce06d4 legacy-trunk

Patch #671459: Invoke import hooks in Py_NewInterpreter.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 22 Jan 2003 09:00:38 +0000
parents dbfc3ef7d003
children 58bad769776e
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Jan 22 04:45:50 2003 +0000
+++ b/Python/pythonrun.c	Wed Jan 22 09:00:38 2003 +0000
@@ -338,6 +338,7 @@
 		PySys_SetPath(Py_GetPath());
 		PyDict_SetItemString(interp->sysdict, "modules",
 				     interp->modules);
+		_PyImportHooks_Init();
 		initmain();
 		if (!Py_NoSiteFlag)
 			initsite();