Issue #18520: initsite() is a little bit more verbose when import site fails
This commit is contained in:
parent
580496005d
commit
62ce62a3a1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue