浏览代码

wxGUI: don't show revision number in welcome screen

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39877 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 年之前
父节点
当前提交
35579ae3eb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gis_set.py

+ 1 - 1
gui/wxpython/gis_set.py

@@ -83,7 +83,7 @@ class GRASSStartup(wx.Frame):
         # 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,