Force use of 2.8 on ssystems with multiple wx versions installed

Pyfa was reported to break under 2.9
This commit is contained in:
DarkPhoenix
2013-09-03 19:27:50 +04:00
parent 0d696881af
commit 843577eec2

View File

@@ -34,6 +34,11 @@ if not hasattr(sys, 'frozen'):
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")
try:
import sqlalchemy