[GRASS-SVN] r46031 - grass/branches/develbranch_6/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 18 09:27:05 EDT 2011
Author: martinl
Date: 2011-04-18 06:27:04 -0700 (Mon, 18 Apr 2011)
New Revision: 46031
Modified:
grass/branches/develbranch_6/gui/wxpython/gis_set.py
Log:
wxGUI/welcome screen: strip revision number
Modified: grass/branches/develbranch_6/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gis_set.py 2011-04-18 13:17:57 UTC (rev 46030)
+++ grass/branches/develbranch_6/gui/wxpython/gis_set.py 2011-04-18 13:27:04 UTC (rev 46031)
@@ -92,7 +92,7 @@
# labels
### crashes when LOCATION doesn't exist
versionFile = open(os.path.join(globalvar.ETCDIR, "VERSIONNUMBER"))
- grassVersion = versionFile.readline().replace('%s' % os.linesep, '').strip()
+ grassVersion = versionFile.readline().split(' ')[0].rstrip('\n')
versionFile.close()
self.select_box = wx.StaticBox (parent = self.panel, id = wx.ID_ANY,
More information about the grass-commit
mailing list