Update a notification for the Recorder Desktop

This commit is contained in:
Michael Mintz 2022-02-05 23:04:21 -05:00
parent ba5eeb45c1
commit 4e93f88553
1 changed files with 6 additions and 2 deletions

View File

@ -15,8 +15,12 @@ import os
import sys
from seleniumbase.fixtures import page_utils
if sys.version_info[0] < 3:
raise Exception("This script is for Python 3 only!")
if sys.version_info <= (3, 7):
current_version = ".".join(str(ver) for ver in sys.version_info[:3])
raise Exception(
"\n* Recorder Desktop requires Python 3.7 or newer!"
"\n*** You are currently using Python %s" % current_version
)
import tkinter as tk # noqa: E402
from tkinter import messagebox # noqa: E402