Browse Source

revert https://trac.osgeo.org/grass/changeset/56351, it breaks the GUI because it interferes with subprocess.Popen. TODO: fix GUI TaskFrame.OnCopy()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56462 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 years ago
parent
commit
e5d3791ec0
1 changed files with 1 additions and 4 deletions
  1. 1 4
      lib/python/script/task.py

+ 1 - 4
lib/python/script/task.py

@@ -234,10 +234,7 @@ class grassTask:
             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: