Skip to content
Permalink
Browse files

[processing] quote GRASS layer inputs

  • Loading branch information
volaya committed Jan 24, 2017
1 parent 1746b32 commit 3525d035fe249f184edf67cd2d1d5219cb506390
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 3525d03

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