Fix for Python version check when there's a "+" sign in revision number.

pull/551/head
Louis Vézina 5 years ago
parent 9617710dd6
commit fef399d0a4

@ -18,7 +18,7 @@ def check_python_version():
print "Python 3 isn't supported. Please use Python " + minimum_python_version + " or greater."
os._exit(0)
elif int(python_version[1]) < minimum_python_version_tuple[1] or int(python_version[2]) < minimum_python_version_tuple[2]:
elif int(python_version[1]) < minimum_python_version_tuple[1] or int(python_version[2].rstrip('+')) < minimum_python_version_tuple[2]:
print "Python " + minimum_python_version + " or greater required. Current version is " + platform.python_version() + ". Please upgrade Python."
os._exit(0)

Loading…
Cancel
Save