From 2b61019f47b49d9981d3be6f848004af6bc79d17 Mon Sep 17 00:00:00 2001 From: Eric Amorde Date: Sun, 22 Feb 2015 14:09:35 -0800 Subject: [PATCH] Quote file paths to handle spaces in file names --- gooey/gui/widgets/widget_pack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gooey/gui/widgets/widget_pack.py b/gooey/gui/widgets/widget_pack.py index b3b62a6..00a624b 100644 --- a/gooey/gui/widgets/widget_pack.py +++ b/gooey/gui/widgets/widget_pack.py @@ -59,9 +59,9 @@ class BaseChooser(WidgetPack): def getValue(self): 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: - return self.text_box.GetValue() + return '"{}"'.format(self.text_box.GetValue()) def onButton(self, evt): raise NotImplementedError