Replace all version-selecting calls with single select()
This commit is contained in:
11
pyfa.py
11
pyfa.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user