diff --git a/overviewer.py b/overviewer.py index acf48e3..6d9d6c5 100755 --- a/overviewer.py +++ b/overviewer.py @@ -18,6 +18,12 @@ import platform import sys +if not (sys.version_info[0] == 2 and sys.version_info[1] >= 6): + print "Sorry, the Overviewer requires at least Python 2.6 to run" + if sys.version_info[0] >= 3: + print "and will not run on Python 3.0 or later" + sys.exit(1) + if platform.system() == 'Windows': try: import ctypes @@ -34,12 +40,6 @@ if platform.system() == 'Windows': except Exception: pass -if not (sys.version_info[0] == 2 and sys.version_info[1] >= 6): - print "Sorry, the Overviewer requires at least Python 2.6 to run" - if sys.version_info[0] >= 3: - print "and will not run on Python 3.0 or later" - sys.exit(1) - import os import os.path import re