[GRASS-SVN] r57050 - grass/branches/releasebranch_6_4/gui/wxpython/core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 9 15:02:42 PDT 2013
Author: annakrat
Date: 2013-07-09 15:02:42 -0700 (Tue, 09 Jul 2013)
New Revision: 57050
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/core/globalvar.py
Log:
wxGUI: wx 2.9 not supported message
Modified: grass/branches/releasebranch_6_4/gui/wxpython/core/globalvar.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/core/globalvar.py 2013-07-09 21:27:37 UTC (rev 57049)
+++ grass/branches/releasebranch_6_4/gui/wxpython/core/globalvar.py 2013-07-09 22:02:42 UTC (rev 57050)
@@ -44,6 +44,7 @@
return
minVersion = [2, 8, 1, 1]
+ unsupportedVersion = [2, 9, 0, 0]
try:
try:
import wxversion
@@ -56,7 +57,9 @@
if map(int, version.split('.')) < minVersion:
raise ValueError('Your wxPython version is %s.%s.%s.%s' % tuple(version.split('.')))
-
+ if map(int, version.split('.')) >= unsupportedVersion:
+ print >> sys.stderr, 'ERROR: wxGUI does not support wxPython %s yet.' % version
+ sys.exit(1)
except ImportError, e:
print >> sys.stderr, 'ERROR: wxGUI requires wxPython. %s' % str(e)
sys.exit(1)
More information about the grass-commit
mailing list