Skip to content

Commit 843577e

Browse files
committed
Force use of 2.8 on ssystems with multiple wx versions installed
Pyfa was reported to break under 2.9
1 parent 0d69688 commit 843577e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyfa.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
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/"
3535
sys.exit(1)
3636

37+
try:
38+
wxversion.select('2.8')
39+
except wxversion.VersionError:
40+
print("Unable to select wxpython 2.8, attempting to continue anyway")
41+
3742
try:
3843
import sqlalchemy
3944

0 commit comments

Comments
 (0)