[GRASS-SVN] r56462 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 29 04:43:45 PDT 2013
Author: mmetz
Date: 2013-05-29 04:43:45 -0700 (Wed, 29 May 2013)
New Revision: 56462
Modified:
grass/trunk/lib/python/script/task.py
Log:
revert r56351, it breaks the GUI because it interferes with subprocess.Popen. TODO: fix GUI TaskFrame.OnCopy()
Modified: grass/trunk/lib/python/script/task.py
===================================================================
--- grass/trunk/lib/python/script/task.py 2013-05-28 23:44:58 UTC (rev 56461)
+++ grass/trunk/lib/python/script/task.py 2013-05-29 11:43:45 UTC (rev 56462)
@@ -234,10 +234,7 @@
elif p.get('value', '') != '' and \
(p['value'] != p.get('default', '') or not ignoreDefault):
# output only values that have been set, and different from defaults
- if ' ' in p['value']:
- cmd += [ '%s="%s"' % (p['name'], p['value']) ]
- else:
- cmd += [ '%s=%s' % (p['name'], p['value']) ]
+ cmd += [ '%s=%s' % (p['name'], p['value']) ]
errList = self.get_cmd_error()
if ignoreErrors is False and errList:
More information about the grass-commit
mailing list