Commit 62ce62a3 authored by Victor Stinner's avatar Victor Stinner

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

parent 58049600
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment