Issue #18520: initsite() is a little bit more verbose when import site fails

This commit is contained in:
Victor Stinner 2013-07-22 22:53:28 +02:00
parent 580496005d
commit 62ce62a3a1
1 changed files with 1 additions and 0 deletions

View File

@ -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);