unix, windows: Use core-provided KeyboardInterrupt exception object.

This commit is contained in:
Damien George
2017-04-10 17:17:22 +10:00
parent 9156c8b460
commit 6c564aa408
6 changed files with 12 additions and 15 deletions

View File

@@ -425,9 +425,6 @@ MP_NOINLINE int main_(int argc, char **argv) {
mp_init();
// create keyboard interrupt object
MP_STATE_VM(keyboard_interrupt_obj) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
char *home = getenv("HOME");
char *path = getenv("MICROPYPATH");
if (path == NULL) {