From 843577eec248450c415e2d900c4b415863ad4b5f Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Tue, 3 Sep 2013 19:27:50 +0400 Subject: [PATCH] Force use of 2.8 on ssystems with multiple wx versions installed Pyfa was reported to break under 2.9 --- pyfa.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyfa.py b/pyfa.py index aedb71839..098b87b9a 100755 --- a/pyfa.py +++ b/pyfa.py @@ -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