summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-22 20:53:28 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-07-22 20:53:28 (GMT)
commit62ce62a3a1633d97f93f85e85559f4439f1952c6 (patch)
tree43f907557215f2e3fc6b64d515bf550006ff7af2 /Python/pythonrun.c
parent580496005d3acdd365ca18729c4ad173d222bc88 (diff)
downloadcpython-62ce62a3a1633d97f93f85e85559f4439f1952c6.zip
cpython-62ce62a3a1633d97f93f85e85559f4439f1952c6.tar.gz
cpython-62ce62a3a1633d97f93f85e85559f4439f1952c6.tar.bz2
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 edf9b6b..30e5e6f 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);