From 791dc2f32c3fb707319d0c8d93d6cde6175d1e01 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 5 Sep 2008 23:27:15 +0000 Subject: compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279 Reviewer: Alexandre Vassalotti --- Python/pythonrun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 39c86e749f..3e40d51fc0 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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 -- cgit v1.2.1