[GRASS-SVN] r39205 - grass/branches/releasebranch_6_4/lib/python
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 14 13:55:26 EDT 2009
Author: martinl
Date: 2009-09-14 13:55:26 -0400 (Mon, 14 Sep 2009)
New Revision: 39205
Modified:
grass/branches/releasebranch_6_4/lib/python/raster.py
Log:
fix grass.mapcalc()
(merge r39203 from devbr6)
Modified: grass/branches/releasebranch_6_4/lib/python/raster.py
===================================================================
--- grass/branches/releasebranch_6_4/lib/python/raster.py 2009-09-14 17:41:06 UTC (rev 39204)
+++ grass/branches/releasebranch_6_4/lib/python/raster.py 2009-09-14 17:55:26 UTC (rev 39205)
@@ -82,5 +82,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