From d73b61c089bf0719023346070ceb5621c7d54009 Mon Sep 17 00:00:00 2001 From: Ben Godfrey Date: Sat, 29 Apr 2017 01:21:08 -0400 Subject: [PATCH] Add python version check. --- interactive.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/interactive.py b/interactive.py index 6e91621..a604dca 100644 --- a/interactive.py +++ b/interactive.py @@ -1,6 +1,17 @@ import os import sys +if sys.version_info < (3,0): + print("""ERROR: Python 3 is required to run this script. + +Is python3 installed? Try running the script +as 'python3 interactive.py' instead. + +If this doesn't work, you may need to install +the Python 3 interpreter from GNOME Software. + +Exiting.""") + sys.exit(1) class Folder: def __init__(self, name, categories):