File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
python/plugins/sextante/otb Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -128,18 +128,20 @@ def processAlgorithm(self, progress):
128
128
commands .append (roiFile )
129
129
self .roiVectors [param .value ] = roiFile
130
130
else :
131
- commands .append (param .value )
131
+ commands .append (" \" " + param .value + " \" " )
132
132
elif isinstance (param , ParameterRaster ):
133
133
commands .append (param .name )
134
134
if self .hasROI :
135
135
roiFile = SextanteUtils .getTempFilename ('tif' )
136
136
commands .append (roiFile )
137
137
self .roiRasters [param .value ] = roiFile
138
138
else :
139
- commands .append (param .value )
139
+ commands .append (" \" " + param .value + " \" " )
140
140
elif isinstance (param , ParameterMultipleInput ):
141
141
commands .append (param .name )
142
- commands .append (str (param .value .replace (";" ," " )))
142
+ files = str (param .value ).split (";" )
143
+ paramvalue = " " .join (["\" " + f + "\" " for f in files ])
144
+ commands .append (paramvalue )
143
145
elif isinstance (param , ParameterSelection ):
144
146
commands .append (param .name )
145
147
idx = int (param .value )
You can’t perform that action at this time.
0 commit comments