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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 22 10:55:52 EDT 2009


Author: martinl
Date: 2009-05-22 10:55:52 -0400 (Fri, 22 May 2009)
New Revision: 37366

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/
   grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
Log:
wxgui/about: gis_h rev/date



Property changes on: grass/branches/releasebranch_6_4/gui/wxpython
___________________________________________________________________
Name: svn:ignore
   - menustrings.py
html
latex

   + build_ext.pyc
menustrings.py
html
latex


Modified: grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2009-05-22 14:40:59 UTC (rev 37365)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2009-05-22 14:55:52 UTC (rev 37366)
@@ -536,13 +536,17 @@
         # name
         info.SetName("GRASS GIS")
         # version
-        versionCmd = gcmd.Command(['g.version'])
-        info.SetVersion(versionCmd.ReadStdOutput()[0].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 + '(' + svn_gis_h_date.split(' ')[1] + ')' + 
+                          '\n\n' + wordwrap(''.join(copyright[:11] + copyright[26:-3]),
                                                   550, wx.ClientDC(self)))
         copyrightFile.close()
         # website



More information about the grass-commit mailing list