added python version checker. starting with 3.8; but we can lower if we confirm that lower works.

This commit is contained in:
cmccabe 2020-01-15 16:56:19 +00:00
parent 5577941f88
commit d9272b4e75
1 changed files with 7 additions and 0 deletions

View File

@ -438,6 +438,13 @@ def signal_handler(sig, frame):
def main():
"""main function - handles argument parsing and calls menu system"""
low_py_ver = 3.8
py_ver = str(sys.version_info[0]) + "." + str(sys.version_info[1])
py_ver = float(py_ver)
if py_ver < low_py_ver:
raise Exception("Must be using Python " + str(low_py_ver) + " or higher. Instead you're using " + str(py_ver))
signal.signal(signal.SIGINT, signal_handler)
args = sys.argv[1:]
config.init()