diff options
author | Guido van Rossum <guido@python.org> | 1999-07-08 17:26:56 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-07-08 17:26:56 +0000 |
commit | 4d5e4916db2f450d72341c9c63d77d5e49e6b17e (patch) | |
tree | 375a245d1456a2d25eb454fa0632cf7bd09305ba /Python/pythonrun.c | |
parent | d8d5ad7f2450d4b0a95965cd14a934364356c720 (diff) | |
download | cpython-4d5e4916db2f450d72341c9c63d77d5e49e6b17e.tar.gz |
Marc-Andre Lemburg discovered that the switch from .pyc to .pyo files,
done by _PyImport_Init(), comes to late to affect the import of
exceptions.py by _PyBuiltin_Init_2(). Move _PyImport_Init() up few lines.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 0b5d0d17e8..4e1632078e 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -149,12 +149,12 @@ Py_Initialize() PyDict_SetItemString(interp->sysdict, "modules", interp->modules); + _PyImport_Init(); + /* phase 2 of builtins */ _PyBuiltin_Init_2(interp->builtins); _PyImport_FixupExtension("__builtin__", "__builtin__"); - _PyImport_Init(); - initsigs(); /* Signal handling stuff, including initintr() */ initmain(); /* Module __main__ */ |