Skip to content

Commit 57a003e

Browse files
authoredJan 24, 2017
Merge pull request #4046 from volaya/quote_GRASS
[processing] quote GRASS layer inputs
2 parents 685e4a2 + 3525d03 commit 57a003e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,16 +395,16 @@ def processCommand(self):
395395
if isinstance(param, (ParameterRaster, ParameterVector)):
396396
value = param.value
397397
if value in self.exportedLayers.keys():
398-
command += ' ' + param.name + '=' \
399-
+ self.exportedLayers[value]
398+
command += ' ' + param.name + '="' \
399+
+ self.exportedLayers[value] + '"'
400400
else:
401-
command += ' ' + param.name + '=' + value
401+
command += ' ' + param.name + '="' + value + '"'
402402
elif isinstance(param, ParameterMultipleInput):
403403
s = param.value
404404
for layer in self.exportedLayers.keys():
405405
s = s.replace(layer, self.exportedLayers[layer])
406406
s = s.replace(';', ',')
407-
command += ' ' + param.name + '=' + s
407+
command += ' ' + param.name + '="' + s + '"'
408408
elif isinstance(param, ParameterBoolean):
409409
if param.value:
410410
command += ' ' + param.name

0 commit comments

Comments
 (0)
Please sign in to comment.