Working import/del

This commit is contained in:
KikooDX 2020-05-03 18:23:28 +02:00
parent 22086763b6
commit b5ce754a5e
1 changed files with 2 additions and 3 deletions

View File

@ -18,15 +18,14 @@ try:
if selection == len(choices):
selection = 0
except KeyboardInterrupt:
if choices[selection] == len(choices) - 1:
assert False
assert choices[selection] != "exit"
draw_string(0, 16, "Loading...")
show_screen()
try:
play = __import__(choices[selection])
del play
except KeyboardInterrupt:
pass
clear_screen()
del play
except AssertionError:
pass