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

This commit is contained in:
Louis Vézina 2019-09-08 07:59:08 -04:00
parent 9617710dd6
commit fef399d0a4
1 changed files with 1 additions and 1 deletions

View File

@ -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)