mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
14 lines
408 B
Python
14 lines
408 B
Python
|
|
import os
|
||
|
|
|
||
|
|
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:
|
||
|
|
print("LibreQoS requires Python 3.10 or greater.")
|
||
|
|
os._exit(-1)
|