From ba92a0f1543b48abeccafc1ecf5d1246bd6bf27d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 22 Jul 2013 22:53:28 +0200 Subject: Issue #18520: initsite() is a little bit more verbose when import site fails --- Python/pythonrun.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index edf9b6b542..30e5e6f0c3 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); -- cgit v1.2.1