mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Issue #18520: initsite() is a little bit more verbose when import site fails
This commit is contained in:
parent
580496005d
commit
62ce62a3a1
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue