[GRASS-SVN] r30201 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 16 23:20:38 EST 2008
Author: cmbarton
Date: 2008-02-16 23:20:38 -0500 (Sat, 16 Feb 2008)
New Revision: 30201
Modified:
grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
Log:
Fix bug that prevented functions from working
Modified: grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py 2008-02-17 03:46:52 UTC (rev 30200)
+++ grass/trunk/gui/wxpython/gui_modules/mcalc_builder.py 2008-02-17 04:20:38 UTC (rev 30201)
@@ -368,7 +368,8 @@
try:
mctxt = self.text_mcalc.GetValue().strip().replace("\n"," ")
mctxt = mctxt.replace(" ","")
- cmdstr = 'r.mapcalc %s=%s' % (self.newmap,mctxt)
+ cmdstr = "r.mapcalc '%s=%s'" % (self.newmap,mctxt)
+ print 'cmdstr=',cmdstr
cmdlist = ['r.mapcalc', ' %s=%s' % (self.newmap,mctxt)]
p = os.system(cmdstr)
#p = gcmd.Command(cmdlist, stderr=None)
More information about the grass-commit
mailing list