Skip to content

Commit

Permalink
Merge pull request #1465 from robertbaldyga/v22.3.2-casctl_fix
Browse files Browse the repository at this point in the history
[v22.3.2] Casctl: Python version check fix
  • Loading branch information
robertbaldyga authored Mar 27, 2024
2 parents 7a23b8f + c9a2ce8 commit 232d92c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions utils/casctl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 232d92c

Please sign in to comment.