From 67b5a809bcd0b418e1d739af4f05bb91543f5598 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 14 Jan 2011 11:53:09 +0200 Subject: [PATCH] Added a message at startup in case wxpython is missing completly --- pyfa.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyfa.py b/pyfa.py index ef4ccd376..fb51accc3 100755 --- a/pyfa.py +++ b/pyfa.py @@ -21,8 +21,12 @@ import sys if not hasattr(sys, 'frozen'): - import wxversion - wxversion.ensureMinimal('2.8') + try: + import wxversion + wxversion.ensureMinimal('2.8') + except: + print "Coulnd't 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) import config