Now works both in python2 and python3

This commit is contained in:
cyian-1756 2018-06-07 06:25:49 -04:00
parent 1b6c379e36
commit 09b8429c28

View File

@ -17,6 +17,11 @@ parser.add_argument("-d", "--debug", help="Run in debug mode", action="store_tru
parser.add_argument("-n", "--non-interactive", help="Do not ask for any input from the user", action="store_true")
args = parser.parse_args()
try:
input = raw_input
except NameError:
pass
# Make sure the file the user selected is a jar
def isJar(filename):