summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
authorLouis Vézina <[email protected]>2019-09-22 22:27:23 -0400
committerLouis Vézina <[email protected]>2019-09-22 22:27:23 -0400
commitbcc4183ef3092d50dae78a6179dd9d88569a0730 (patch)
treeea0741b2effe33eee8b4682983f919d04bd65c31 /bazarr.py
parentb055d89b4ff5690ada95d1be7967f02a451e80f1 (diff)
downloadbazarr-bcc4183ef3092d50dae78a6179dd9d88569a0730.tar.gz
bazarr-bcc4183ef3092d50dae78a6179dd9d88569a0730.zip
WIP
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py9
1 files changed, 6 insertions, 3 deletions
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.")