mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-08 05:15:31 +01:00
Py_RunMain does not call exit()
This commit is contained in:
parent
8fc745c7fb
commit
eb60be9186
1 changed files with 3 additions and 1 deletions
|
|
@ -263,11 +263,13 @@ run_interpreter() {
|
|||
code_page = GetConsoleOutputCP();
|
||||
if (code_page != CP_UTF8) SetConsoleOutputCP(CP_UTF8);
|
||||
setup_vt_terminal_mode();
|
||||
Py_AtExit(cleanup_console_state);
|
||||
#endif
|
||||
|
||||
int ret = Py_RunMain();
|
||||
PyConfig_Clear(&config);
|
||||
#ifdef _WIN32
|
||||
cleanup_console_state();
|
||||
#endif
|
||||
exit(ret);
|
||||
#undef CHECK_STATUS
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue