[GRASS-SVN] r45098 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 20 08:17:23 EST 2011


Author: martinl
Date: 2011-01-20 05:17:22 -0800 (Thu, 20 Jan 2011)
New Revision: 45098

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
Log:
fix r45097


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2011-01-20 13:14:32 UTC (rev 45097)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2011-01-20 13:17:22 UTC (rev 45098)
@@ -173,9 +173,10 @@
             if self.type == 'command':
                 read = False
                 for c in self.cmd:
-                    ret = gcmd.RunCommand(c[0],
-                                          quiet = True,
-                                          **c[1])
+                    ret, msg = gcmd.RunCommand(c[0],
+                                               getErrorMsg = True,
+                                               quiet = True,
+                                               **c[1])
                     if ret != 0:
                         break
                     if not read:
@@ -183,9 +184,10 @@
                 
                 os.environ["GRASS_PNG_READ"] = "FALSE"
             else:
-                ret = gcmd.RunCommand(self.cmd[0],
-                                      quiet = True,
-                                      **self.cmd[1])
+                ret, msg = gcmd.RunCommand(self.cmd[0],
+                                           getErrorMsg = True,
+                                           quiet = True,
+                                           **self.cmd[1])
                 
             if len(msg):
                 sys.stderr.write(_("Running") + " '" + utils.GetCmdString(self.cmd) + "'")



More information about the grass-commit mailing list