compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279

Reviewer: Alexandre Vassalotti
This commit is contained in:
Benjamin Peterson 2008-09-05 23:27:15 +00:00
parent a741ebf8a1
commit 791dc2f32c
4 changed files with 9 additions and 5 deletions

View file

@ -239,11 +239,11 @@ Py_InitializeEx(int install_sigs)
}
initmain(); /* Module __main__ */
if (!Py_NoSiteFlag)
initsite(); /* Module site */
if (initstdio() < 0)
Py_FatalError(
"Py_Initialize: can't initialize sys standard streams");
if (!Py_NoSiteFlag)
initsite(); /* Module site */
/* auto-thread-state API, if available */
#ifdef WITH_THREAD