[GRASS-SVN] r69765 - grass/branches/releasebranch_7_2/lib/python/script

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 2 18:02:31 PDT 2016


Author: annakrat
Date: 2016-11-02 18:02:30 -0700 (Wed, 02 Nov 2016)
New Revision: 69765

Modified:
   grass/branches/releasebranch_7_2/lib/python/script/task.py
Log:
d.mon + d.vect: ERROR: Option <map> does not accept multiple answers (see #3132), merge from trunk r69160

Modified: grass/branches/releasebranch_7_2/lib/python/script/task.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/script/task.py	2016-11-02 21:53:28 UTC (rev 69764)
+++ grass/branches/releasebranch_7_2/lib/python/script/task.py	2016-11-03 01:02:30 UTC (rev 69765)
@@ -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