Browse Source

Quote file paths to handle spaces in file names

pull/72/head
Eric Amorde 9 years ago
parent
commit
2b61019f47
1 changed files with 2 additions and 2 deletions
  1. 4
      gooey/gui/widgets/widget_pack.py

4
gooey/gui/widgets/widget_pack.py

@ -59,9 +59,9 @@ class BaseChooser(WidgetPack):
def getValue(self): def getValue(self):
if self.option_string: if self.option_string:
return '{0} {1}'.format(self.option_string, self.text_box.GetValue())
return '{0} "{1}"'.format(self.option_string, self.text_box.GetValue())
else: else:
return self.text_box.GetValue()
return '"{}"'.format(self.text_box.GetValue())
def onButton(self, evt): def onButton(self, evt):
raise NotImplementedError raise NotImplementedError

Loading…
Cancel
Save