summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-22 22:53:28 +0200
committerVictor Stinner <victor.stinner@gmail.com>2013-07-22 22:53:28 +0200
commitba92a0f1543b48abeccafc1ecf5d1246bd6bf27d (patch)
tree5f67fad656356c61e90f82600c6e40e1152c9c9b /Python/pythonrun.c
parente1b969a82c4ccc6be134d777a134ca7390e52da3 (diff)
downloadcpython-ba92a0f1543b48abeccafc1ecf5d1246bd6bf27d.tar.gz
Issue #18520: initsite() is a little bit more verbose when import site fails
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c1
1 files changed, 1 insertions, 0 deletions
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);