Skip to content
Permalink
Browse files

Merge pull request #4046 from volaya/quote_GRASS

[processing] quote GRASS layer inputs
  • Loading branch information
volaya committed Jan 24, 2017
2 parents 685e4a2 + 3525d03 commit 57a003ea282b7d28c85265be3f94b200d2dcee73
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/processing/algs/grass7/Grass7Algorithm.py
@@ -395,16 +395,16 @@ def processCommand(self):
if isinstance(param, (ParameterRaster, ParameterVector)):
value = param.value
if value in self.exportedLayers.keys():
command += ' ' + param.name + '=' \
+ self.exportedLayers[value]
command += ' ' + param.name + '="' \
+ self.exportedLayers[value] + '"'
else:
command += ' ' + param.name + '=' + value
command += ' ' + param.name + '="' + value + '"'
elif isinstance(param, ParameterMultipleInput):
s = param.value
for layer in self.exportedLayers.keys():
s = s.replace(layer, self.exportedLayers[layer])
s = s.replace(';', ',')
command += ' ' + param.name + '=' + s
command += ' ' + param.name + '="' + s + '"'
elif isinstance(param, ParameterBoolean):
if param.value:
command += ' ' + param.name

0 comments on commit 57a003e

Please sign in to comment.
You can’t perform that action at this time.