Replace all version-selecting calls with single select()

This commit is contained in:
DarkPhoenix
2013-09-05 23:41:10 +04:00
parent 30c0b19e89
commit f208e3c39e

11
pyfa.py
View File

@@ -29,15 +29,10 @@ if not hasattr(sys, 'frozen'):
try:
import wxversion
wxversion.ensureMinimal('2.8')
except ImportError:
print "Cannot find wxPython or the installed wxPython version doesn't meet the min. requirements.\nYou can download wxPython (2.8) from http://www.wxpython.org/"
sys.exit(1)
try:
wxversion.select('2.8')
except wxversion.VersionError:
print("Unable to select wxpython 2.8, attempting to continue anyway")
except (ImportError, wxversion.VersionError):
print "Cannot find wxPython or the installed wxPython version doesn't meet requirements.\nYou can download wxPython (2.8) from http://www.wxpython.org/"
sys.exit(1)
try:
import sqlalchemy