From bcc4183ef3092d50dae78a6179dd9d88569a0730 Mon Sep 17 00:00:00 2001 From: Louis Vézina <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 22 Sep 2019 22:27:23 -0400 Subject: WIP --- bazarr.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bazarr.py') diff --git a/bazarr.py b/bazarr.py index 04ef801e7..d0c983a0b 100644 --- a/bazarr.py +++ b/bazarr.py @@ -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.") -- cgit v1.2.3