Skip to content

Commit 5666db2

Browse files
Rashad Kanavathnyalldawson
Rashad Kanavath
authored andcommitted
pass file names with quotes to otb
1 parent be52385 commit 5666db2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/algs/otb/OtbAlgorithm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ def processAlgorithm(self, parameters, context, feedback):
210210

211211
if isinstance(param, (QgsProcessingParameterRasterLayer, QgsProcessingParameterVectorLayer)):
212212
if isinstance(v, QgsMapLayer):
213-
value = v.source()
213+
value = '"{}"'.format(v.source())
214214
else:
215-
value = v
215+
value = '"{}"'.format(v)
216216
elif isinstance(param, QgsProcessingParameterMultipleLayers):
217217
value = ''
218218
for item in v:

0 commit comments

Comments
 (0)