Forráskód Böngészése

d.mon + d.vect: ERROR: Option <map> does not accept multiple answers (see https://trac.osgeo.org/grass/ticket/3132)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69160 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 éve
szülő
commit
642a8b9b25
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      lib/python/script/task.py

+ 2 - 0
lib/python/script/task.py

@@ -635,6 +635,8 @@ def cmdtuple_to_list(cmd):
     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