[GRASS-SVN] r46029 - grass/branches/releasebranch_6_4/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 18 09:04:49 EDT 2011


Author: martinl
Date: 2011-04-18 06:04:49 -0700 (Mon, 18 Apr 2011)
New Revision: 46029

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
Log:
wxGUI/welcome screen: strip revision number


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py	2011-04-18 12:58:11 UTC (rev 46028)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py	2011-04-18 13:04:49 UTC (rev 46029)
@@ -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