From 6e2aa804915097b6e923bc5c225383666c38d346 Mon Sep 17 00:00:00 2001 From: Daniel Popescu Date: Wed, 31 Oct 2018 18:16:48 -0700 Subject: [PATCH] Index by int, not string representation of int --- FOIYL.py | 1 + 1 file changed, 1 insertion(+) diff --git a/FOIYL.py b/FOIYL.py index 2e015b3..82b6df4 100644 --- a/FOIYL.py +++ b/FOIYL.py @@ -101,6 +101,7 @@ def menu(input='nothing',stage='0'): print '--Enter number for osascript you want to use--' choice = raw_input('>> ') try: + choice = int(choice) print predefine_osa[choice] os.system("echo "+predefine_osa[choice]) except: