[GRASS-SVN] r39203 - grass/branches/develbranch_6/lib/python

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 14 12:15:37 EDT 2009


Author: martinl
Date: 2009-09-14 12:15:36 -0400 (Mon, 14 Sep 2009)
New Revision: 39203

Modified:
   grass/branches/develbranch_6/lib/python/raster.py
Log:
fix grass.mapcalc()


Modified: grass/branches/develbranch_6/lib/python/raster.py
===================================================================
--- grass/branches/develbranch_6/lib/python/raster.py	2009-09-14 14:37:28 UTC (rev 39202)
+++ grass/branches/develbranch_6/lib/python/raster.py	2009-09-14 16:15:36 UTC (rev 39203)
@@ -81,5 +81,6 @@
     """
     t = string.Template(exp)
     e = t.substitute(**kwargs)
-    if run_command('r.mapcalc', expression = e) != 0:
+
+    if write_command('r.mapcalc', stdin = e) != 0:
 	fatal("An error occurred while running r.mapcalc")



More information about the grass-commit mailing list