REQUIRED_VERSION_STR

This commit is contained in:
Bakerboy448 2023-03-31 17:35:35 -05:00
parent 60fff1f13d
commit 57db8f3a66

View file

@ -16,12 +16,13 @@ except ModuleNotFoundError:
sys.exit(0)
REQUIRED_VERSION = (3, 8, 1)
REQUIRED_VERSION_STR = ".".join(str(x) for x in REQUIRED_VERSION)
current_version = sys.version_info
if current_version < (REQUIRED_VERSION):
if current_version < (REQUIRED_VERSION_STR):
print(
"Version Error: Version: %s.%s.%s incompatible with qbit_manage please use Python %s+"
% (current_version[0], current_version[1], current_version[2], REQUIRED_VERSION)
% (current_version[0], current_version[1], current_version[2], REQUIRED_VERSION_STR)
)
sys.exit(0)