Skip to content

Commit 0cb8286

Browse files
committedJan 28, 2018
Fixes #17929 - output file paths not quoted (m.cogo, v.out.vtk)
1 parent e8f077f commit 0cb8286

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,12 @@ def processCommand(self):
420420

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

430430
# Add output file to exported layers, to indicate that
431431
# they are present in GRASS

0 commit comments

Comments
 (0)
Please sign in to comment.