[GRASS-SVN] r53460 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 18 04:26:31 PDT 2012


Author: martinl
Date: 2012-10-18 04:26:30 -0700 (Thu, 18 Oct 2012)
New Revision: 53460

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: improve OnSystemInfo(), Proj4 added


Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2012-10-18 06:50:52 UTC (rev 53459)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2012-10-18 11:26:30 UTC (rev 53460)
@@ -817,19 +817,27 @@
             from osgeo import gdal
             gdalVersion = gdal.__version__
         except:
-            gdalVersion = _("unknown")
+            try:
+                gdalVersion = grass.Popen(['gdalinfo', '--version'], stdout = grass.PIPE).communicate()[0].rstrip('\n')
+            except:
+                gdalVersion = _("unknown")
+        try:
+            projVersion = RunCommand('proj', getErrorMsg = True)[1].splitlines()[0]
+        except:
+            projVersion = _("unknown")
         
         self.goutput.WriteCmdLog(_("System Info"))
         self.goutput.WriteLog("%s: %s\n"
                               "%s: %s\n"
                               "%s: %s (%s)\n"
                               "GDAL/OGR: %s\n"
+                              "PROJ4: %s\n"
                               "Python: %s\n"
                               "wxPython: %s\n"
                               "%s: %s\n"% (_("GRASS version"), vInfo['version'],
                                            _("GRASS SVN Revision"), vInfo['revision'],
                                            _("GIS Library Revision"), vInfo['libgis_revision'], vInfo['libgis_date'].split(' ', 1)[0],
-                                           gdalVersion,
+                                           gdalVersion, projVersion,
                                            platform.python_version(),
                                            wx.__version__,
                                            _("Platform"), platform.platform()),



More information about the grass-commit mailing list