(original) (raw)

changeset: 84796:d38348173c46 user: Victor Stinner victor.stinner@gmail.com date: Mon Jul 22 22:53:28 2013 +0200 files: Python/pythonrun.c description: Issue #18520: initsite() is a little bit more verbose when import site fails diff -r 31796b188bec -r d38348173c46 Python/pythonrun.c --- a/Python/pythonrun.c Mon Jul 22 22:40:00 2013 +0200 +++ b/Python/pythonrun.c Mon Jul 22 22:53:28 2013 +0200 @@ -918,6 +918,7 @@ PyObject *m; m = PyImport_ImportModule("site"); if (m == NULL) { + fprintf(stderr, "Failed to import the site module\n"); PyErr_Print(); Py_Finalize(); exit(1); /victor.stinner@gmail.com