Skip to content

Commit

Permalink
Fixed #10666
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 22, 2014
1 parent ec1bfad commit b73c870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/parameters/ParameterFile.py
Expand Up @@ -38,15 +38,15 @@ def __init__(self, name='', description='', isFolder=False, optional=True, ext =
self.optional = optional

def getValueAsCommandLineParameter(self):
return '"' + str(self.value) + '"'
return '"' + unicode(self.value) + '"'

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

def setValue(self, obj):
self.value = str(obj)
self.value = unicode(obj)
if self.value.strip() == '' or self.value is None:
if not self.optional:
return False
Expand Down

0 comments on commit b73c870

Please sign in to comment.