diff Python/pythonrun.c @ 84796:d38348173c46

Issue #18520: initsite() is a little bit more verbose when import site fails
author Victor Stinner <victor.stinner@gmail.com>
date Mon, 22 Jul 2013 22:53:28 +0200
parents fc718c177ee6
children a4998e8fd7fc
line wrap: on
line diff
--- 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);