Skip to content

Commit

Permalink
[sextante] fixed issue with blank spaces in filenames in OTB
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 6, 2013
1 parent 64a77af commit 17ca300
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/plugins/sextante/otb/OTBAlgorithm.py
Expand Up @@ -128,18 +128,20 @@ def processAlgorithm(self, progress):
commands.append(roiFile)
self.roiVectors[param.value] = roiFile
else:
commands.append(param.value)
commands.append("\"" + param.value+ "\"")
elif isinstance(param, ParameterRaster):
commands.append(param.name)
if self.hasROI:
roiFile = SextanteUtils.getTempFilename('tif')
commands.append(roiFile)
self.roiRasters[param.value] = roiFile
else:
commands.append(param.value)
commands.append("\"" + param.value+ "\"")
elif isinstance(param, ParameterMultipleInput):
commands.append(param.name)
commands.append(str(param.value.replace(";"," ")))
files = str(param.value).split(";")
paramvalue = " ".join(["\"" + f + "\"" for f in files])
commands.append(paramvalue)
elif isinstance(param, ParameterSelection):
commands.append(param.name)
idx = int(param.value)
Expand Down

0 comments on commit 17ca300

Please sign in to comment.