Skip to content

Commit

Permalink
add a Python version check when running as a script (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
natict authored Apr 2, 2024
1 parent b890205 commit d8c4e12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/porting-advisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
SPDX-License-Identifier: Apache-2.0
"""
import sys

from advisor import main

if __name__ == '__main__':
if sys.version_info < (3, 10):
print("Python 3.10 or newer is required to run this application.")
sys.exit(1)
main()

0 comments on commit d8c4e12

Please sign in to comment.