Skip to content

Commit

Permalink
Improve condition to check Python3 version
Browse files Browse the repository at this point in the history
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
  • Loading branch information
dgaliffiAMD committed Aug 8, 2024
1 parent 6cd4e71 commit da59e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omniperf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def verify_deps():
dependencies are not available."""

# Check which version of python is being used
if sys.version_info[0] < 3 or sys.version_info[1] < 8:
if sys.version_info[0] < 3 or (sys.version_info[0] == 3 and sys.version_info[1] < 8):
print("[ERROR] Python 3.8 or higher is required to run omniperf."
f" The current version is {sys.version_info[0]}.{sys.version_info[1]}.")
sys.exit(1)
Expand Down

0 comments on commit da59e79

Please sign in to comment.