diff --git a/gatorconfig/gui/cwidgets.py b/gatorconfig/gui/cwidgets.py index 39d311a..ea94127 100644 --- a/gatorconfig/gui/cwidgets.py +++ b/gatorconfig/gui/cwidgets.py @@ -30,6 +30,8 @@ def set_textbox_text(self, text): """Set the textbox text""" self.line.setText(os.path.relpath(text)) - def get_file_path(self): + def text(self): """Return the file path from the text box""" - return self.line.text() + if self.line.text() == "": + return "" + return os.path.relpath(self.line.text())