Working import/del
This commit is contained in:
parent
22086763b6
commit
b5ce754a5e
5
menu.py
5
menu.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue