[GRASS-SVN] r69160 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 19 03:24:04 PDT 2016
Author: martinl
Date: 2016-08-19 03:24:04 -0700 (Fri, 19 Aug 2016)
New Revision: 69160
Modified:
grass/trunk/lib/python/script/task.py
Log:
d.mon + d.vect: ERROR: Option <map> does not accept multiple answers (see #3132)
Modified: grass/trunk/lib/python/script/task.py
===================================================================
--- grass/trunk/lib/python/script/task.py 2016-08-19 09:57:35 UTC (rev 69159)
+++ grass/trunk/lib/python/script/task.py 2016-08-19 10:24:04 UTC (rev 69160)
@@ -635,6 +635,8 @@
for k, v in cmd[1].items():
if k in ('flags', 'help', 'verbose', 'quiet', 'overwrite'):
continue
+ if ' ' in v:
+ v = '"{}"'.format(v)
cmdList.append('%s=%s' % (k, v))
return cmdList
More information about the grass-commit
mailing list