diff options
-rw-r--r-- | bazarr.py | 8 | ||||
-rw-r--r-- | bazarr/main.py | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -18,13 +18,13 @@ def check_python_version(): minimum_py2_str = ".".join(str(i) for i in minimum_py2_tuple) minimum_py3_str = ".".join(str(i) for i in minimum_py3_tuple) - if (int(python_version[0]) == minimum_py3_tuple[0] and int(python_version[1]) < minimum_py3_tuple[1]) or \ - (int(python_version[0]) != minimum_py3_tuple[0] and int(python_version[0]) != minimum_py2_tuple[0]): + if int(python_version[0]) < 3: print("Python " + minimum_py3_str + " or greater required. " "Current version is " + platform.python_version() + ". Please upgrade Python.") sys.exit(1) - elif int(python_version[0]) == minimum_py2_tuple[0] and int(python_version[1]) < minimum_py2_tuple[1]: - print("Python " + minimum_py2_str + " or greater required. " + elif (int(python_version[0]) == minimum_py3_tuple[0] and int(python_version[1]) < minimum_py3_tuple[1]) or \ + (int(python_version[0]) != minimum_py3_tuple[0] and int(python_version[0]) != minimum_py2_tuple[0]): + print("Python " + minimum_py3_str + " or greater required. " "Current version is " + platform.python_version() + ". Please upgrade Python.") sys.exit(1) diff --git a/bazarr/main.py b/bazarr/main.py index f96b1e810..24f2c9b39 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -1,6 +1,6 @@ # coding=utf-8 -bazarr_version = '0.8.4.3' +bazarr_version = '0.8.4.4' import os os.environ["SZ_USER_AGENT"] = "Bazarr/1" |