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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 14 15:45:42 EDT 2009


Author: martinl
Date: 2009-05-14 15:45:42 -0400 (Thu, 14 May 2009)
New Revision: 37235

Modified:
   grass/trunk/gui/wxpython/wxgui.py
Log:
wxGUI: use gis_h revision in about dialog


Modified: grass/trunk/gui/wxpython/wxgui.py
===================================================================
--- grass/trunk/gui/wxpython/wxgui.py	2009-05-14 18:51:30 UTC (rev 37234)
+++ grass/trunk/gui/wxpython/wxgui.py	2009-05-14 19:45:42 UTC (rev 37235)
@@ -542,18 +542,21 @@
     def OnAboutGRASS(self, event):
         """Display 'About GRASS' dialog"""
         info = wx.AboutDialogInfo()
-
-        rev = "$Revision$"
+        
         # name
         info.SetName("GRASS GIS")
         # version
-        version = grass.read_command('g.version').replace('GRASS', '').strip()
+        version, svn_gis_h_rev, svn_gis_h_date = gcmd.RunCommand('g.version',
+                                                                 flags = 'r',
+                                                                 read = True).splitlines()
+        version = version.replace('GRASS', '').strip()
         info.SetVersion(version)
         # description
         copyrightFile = open(os.path.join(os.getenv("GISBASE"), "COPYING"), 'r')
         copyrightOut = []
         copyright = copyrightFile.readlines()
-        info.SetCopyright(rev + '\n\n' + wordwrap(''.join(copyright[:11] + copyright[26:-3]),
+        info.SetCopyright('GIS Library: '+ svn_gis_h_rev + 
+                          '\n\n' + wordwrap(''.join(copyright[:11] + copyright[26:-3]),
                                                   550, wx.ClientDC(self)))
         copyrightFile.close()
         # website
@@ -568,7 +571,7 @@
         authorsFile.close()
         
         wx.AboutBox(info)
-
+        
     def OnWorkspace(self, event):
         """Workspace menu (new, load)"""
         point = wx.GetMousePosition()


Property changes on: grass/trunk/gui/wxpython/wxgui.py
___________________________________________________________________
Name: svn:keywords
   - Author Date Id Revision
   + Author Date Id



More information about the grass-commit mailing list