Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 27339:d34ef00d9da8 | 27340:8b53b0ce06d4 |
|---|---|
| 336 interp->sysdict = PyModule_GetDict(sysmod); | 336 interp->sysdict = PyModule_GetDict(sysmod); |
| 337 Py_INCREF(interp->sysdict); | 337 Py_INCREF(interp->sysdict); |
| 338 PySys_SetPath(Py_GetPath()); | 338 PySys_SetPath(Py_GetPath()); |
| 339 PyDict_SetItemString(interp->sysdict, "modules", | 339 PyDict_SetItemString(interp->sysdict, "modules", |
| 340 interp->modules); | 340 interp->modules); |
| 341 _PyImportHooks_Init(); | |
| 341 initmain(); | 342 initmain(); |
| 342 if (!Py_NoSiteFlag) | 343 if (!Py_NoSiteFlag) |
| 343 initsite(); | 344 initsite(); |
| 344 } | 345 } |
| 345 | 346 |
