Skip to content

Commit

Permalink
Fixes #17929 - output file paths not quoted (m.cogo, v.out.vtk)
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jan 28, 2018
1 parent e8f077f commit 0cb8286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass7/Grass7Algorithm.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -420,12 +420,12 @@ def processCommand(self):


for out in self.outputs: for out in self.outputs:
if isinstance(out, OutputFile): if isinstance(out, OutputFile):
command += ' > ' + out.value command += ' > "{}"'.format(out.value)
elif not isinstance(out, OutputHTML): elif not isinstance(out, OutputHTML):
# We add an output name to make sure it is unique if the session # We add an output name to make sure it is unique if the session
# uses this algorithm several times. # uses this algorithm several times.
uniqueOutputName = out.name + self.uniqueSufix uniqueOutputName = out.name + self.uniqueSufix
command += ' ' + out.name + '=' + uniqueOutputName command += ' {}="{}"'.format(out.name, uniqueOutputName)


# Add output file to exported layers, to indicate that # Add output file to exported layers, to indicate that
# they are present in GRASS # they are present in GRASS
Expand Down

0 comments on commit 0cb8286

Please sign in to comment.