diff options
author | Louis Vézina <[email protected]> | 2019-09-22 22:27:23 -0400 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2019-09-22 22:27:23 -0400 |
commit | bcc4183ef3092d50dae78a6179dd9d88569a0730 (patch) | |
tree | ea0741b2effe33eee8b4682983f919d04bd65c31 /bazarr.py | |
parent | b055d89b4ff5690ada95d1be7967f02a451e80f1 (diff) | |
download | bazarr-bcc4183ef3092d50dae78a6179dd9d88569a0730.tar.gz bazarr-bcc4183ef3092d50dae78a6179dd9d88569a0730.zip |
WIP
Diffstat (limited to 'bazarr.py')
-rw-r--r-- | bazarr.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -19,9 +19,12 @@ def check_python_version(): minimum_python_version = ".".join(str(i) for i in minimum_python_version_tuple) minimum_python3_version = ".".join(str(i) for i in minimum_python3_version_tuple) - if int(python_version[0]) == minimum_python3_version_tuple[0] and int(python_version[1]) < minimum_python3_version_tuple[1]: - print("Python " + minimum_python3_version + " or greater required. Current version is " + platform.python_version() + ". Please upgrade Python.") - os._exit(0) + if int(python_version[0]) == minimum_python3_version_tuple[0]: + if int(python_version[1]) >= minimum_python3_version_tuple[1]: + pass + else: + print("Python " + minimum_python3_version + " or greater required. Current version is " + platform.python_version() + ". Please upgrade Python.") + os._exit(0) elif int(python_version[1]) < minimum_python_version_tuple[1] or int(re.search(r'\d+', python_version[2]).group()) < minimum_python_version_tuple[2]: print("Python " + minimum_python_version + " or greater required. Current version is " + platform.python_version() + ". Please upgrade Python.") |