Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 84796:d38348173c46
Issue #18520: initsite() is a little bit more verbose when import site fails
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Mon, 22 Jul 2013 22:53:28 +0200 |
| parents | fc718c177ee6 |
| children | a4998e8fd7fc |
comparison
equal
deleted
inserted
replaced
| 84795:31796b188bec | 84796:d38348173c46 |
|---|---|
| 916 initsite(void) | 916 initsite(void) |
| 917 { | 917 { |
| 918 PyObject *m; | 918 PyObject *m; |
| 919 m = PyImport_ImportModule("site"); | 919 m = PyImport_ImportModule("site"); |
| 920 if (m == NULL) { | 920 if (m == NULL) { |
| 921 fprintf(stderr, "Failed to import the site module\n"); | |
| 921 PyErr_Print(); | 922 PyErr_Print(); |
| 922 Py_Finalize(); | 923 Py_Finalize(); |
| 923 exit(1); | 924 exit(1); |
| 924 } | 925 } |
| 925 else { | 926 else { |
