Skip to content

Commit b73c870

Browse files
committed
Fixed #10666
1 parent ec1bfad commit b73c870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/parameters/ParameterFile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ def __init__(self, name='', description='', isFolder=False, optional=True, ext =
3838
self.optional = optional
3939

4040
def getValueAsCommandLineParameter(self):
41-
return '"' + str(self.value) + '"'
41+
return '"' + unicode(self.value) + '"'
4242

4343
def serialize(self):
4444
return self.__module__.split('.')[-1] + '|' + self.name + '|' \
4545
+ self.description + '|' + str(self.isFolder) + '|' \
4646
+ str(self.optional)
4747

4848
def setValue(self, obj):
49-
self.value = str(obj)
49+
self.value = unicode(obj)
5050
if self.value.strip() == '' or self.value is None:
5151
if not self.optional:
5252
return False

0 commit comments

Comments
 (0)