pythonCheck.py: small code improvement

This commit is contained in:
Jarosław Kłopotek - INTERDUO committed 2024-07-17 09:13:11 +02:00
1 parent 2f6a392b80
commit fe938b4a47
1 file changed
+2 -7
+2 -7
View File
@@ -4,11 +4,6 @@ def checkPythonVersion():
# Perform a version check
import sys
print("Running Python Version " + sys.version)
version_ok = True
if sys.version_info[0] < 3:
version_ok = False
if sys.version_info[0]==3 and sys.version_info[1] < 10:
version_ok = False
if version_ok == False:
if sys.version_info[0] < 3 or (sys.version_info[0]==3 and sys.version_info[1] < 10):
print("LibreQoS requires Python 3.10 or greater.")
os._exit(-1)
os._exit(-1)