mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2026-10-30 16:20:06 -05:00
pythonCheck.py: small code improvement
This commit is contained in:
1 parent
2f6a392b80
commit
fe938b4a47
1 file changed
+2
-7
+2
-7
@@ -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)
|
||||
Reference in new issue
Block a user