Skip to content

Commit

Permalink
Add python version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenJetson committed Apr 29, 2017
1 parent 3c0ae3e commit d73b61c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions interactive.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit d73b61c

Please sign in to comment.