Rearrange version checks in Overviewer.py
This commit is contained in:
@@ -18,6 +18,12 @@
|
|||||||
import platform
|
import platform
|
||||||
import sys
|
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':
|
if platform.system() == 'Windows':
|
||||||
try:
|
try:
|
||||||
import ctypes
|
import ctypes
|
||||||
@@ -34,12 +40,6 @@ if platform.system() == 'Windows':
|
|||||||
except Exception:
|
except Exception:
|
||||||
pass
|
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
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
|
|||||||
Reference in New Issue
Block a user