From: Victor Stinner Date: Mon, 22 Jul 2013 20:53:28 +0000 (+0200) Subject: Issue #18520: initsite() is a little bit more verbose when import site fails X-Git-Tag: v3.4.0a1~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62ce62a3a1633d97f93f85e85559f4439f1952c6;p=thirdparty%2FPython%2Fcpython.git Issue #18520: initsite() is a little bit more verbose when import site fails --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index edf9b6b54269..30e5e6f0c373 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -918,6 +918,7 @@ initsite(void) PyObject *m; m = PyImport_ImportModule("site"); if (m == NULL) { + fprintf(stderr, "Failed to import the site module\n"); PyErr_Print(); Py_Finalize(); exit(1);