diff options
author | Louis Vézina <[email protected]> | 2019-09-22 20:38:43 -0400 |
---|---|---|
committer | Louis Vézina <[email protected]> | 2019-09-22 20:38:43 -0400 |
commit | b055d89b4ff5690ada95d1be7967f02a451e80f1 (patch) | |
tree | 55f8c003c346bce91d2d9310ade6a88385df615b /bazarr.py | |
parent | 9dd85eeee703e7663ac45b37878bcdfe1e9d0cfc (diff) | |
parent | 2ac39c5d24ceb0506a5254bfd8ccbfdf4877702e (diff) | |
download | bazarr-b055d89b4ff5690ada95d1be7967f02a451e80f1.tar.gz bazarr-b055d89b4ff5690ada95d1be7967f02a451e80f1.zip |
Merge branch 'development' into python3
# Conflicts:
# bazarr.py
# bazarr/get_subtitle.py
Diffstat (limited to 'bazarr.py')
-rw-r--r-- | bazarr.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ import time import os import sys import platform +import re from bazarr.get_args import args @@ -22,7 +23,7 @@ def check_python_version(): print("Python " + minimum_python3_version + " or greater required. Current version is " + platform.python_version() + ". Please upgrade Python.") os._exit(0) - elif int(python_version[0]) == minimum_python_version_tuple[0] and (int(python_version[1]) < minimum_python_version_tuple[1] or int(python_version[2].rstrip('+')) < minimum_python_version_tuple[2]): + 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.") os._exit(0) |