[GRASS-SVN] r39877 - grass/trunk/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 3 05:44:28 EST 2009


Author: martinl
Date: 2009-12-03 05:44:28 -0500 (Thu, 03 Dec 2009)
New Revision: 39877

Modified:
   grass/trunk/gui/wxpython/gis_set.py
Log:
wxGUI: don't show revision number in welcome screen


Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py	2009-12-03 10:39:55 UTC (rev 39876)
+++ grass/trunk/gui/wxpython/gis_set.py	2009-12-03 10:44:28 UTC (rev 39877)
@@ -83,7 +83,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