Skip to content

Commit

Permalink
Check if user is using Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
UltimaHoarder committed Nov 8, 2020
1 parent d2654b0 commit 15791a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@


def version_check():
if sys.version_info.major < 3:
string = "The script may not work with Python version 3.7 and below \n"
string += "Execute the script with Python 3.8 \n"
version_info = sys.version_info
python_version = f"{version_info.major}.{version_info.minor}"
python_version = float(python_version)
if python_version < 3.9:
string = "Execute the script with Python 3.9 \n"
string += "Press enter to continue"
input(string)

Expand Down

0 comments on commit 15791a2

Please sign in to comment.