Merge pull request #1196 from kmajzero/casctl_fix

Casctl: Python version check fix
This commit is contained in:
Robert Baldyga 2022-05-12 10:34:29 +02:00 committed by GitHub
commit e914c56c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,20 +3,12 @@
# Copyright(c) 2012-2021 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
#
import platform
import sys
min_ver = "3.6"
ver = platform.python_version()
if ver < min_ver:
print(
"Minimum required python version is {}. Detected python version is {}".format(
min_ver,
ver,
),
file=sys.stderr,
)
min_ver = (3, 6)
if sys.version_info < min_ver:
print("Minimum required python version is {}.{}. Detected python version is '{}'"
.format(*min_ver, sys.version), file=sys.stderr)
exit(1)
import argparse