[Python-checkins] cpython: Issue #18520: initsite() is a little bit more verbose when import site fails

victor.stinner python-checkins at python.org
Mon Jul 22 23:59:10 CEST 2013


http://hg.python.org/cpython/rev/d38348173c46
changeset:   84796:d38348173c46
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Jul 22 22:53:28 2013 +0200
summary:
  Issue #18520: initsite() is a little bit more verbose when import site fails

files:
  Python/pythonrun.c |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Python/pythonrun.c b/Python/pythonrun.c
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -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);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list