From b145790945b7756c91f9b437c51c1df632007650 Mon Sep 17 00:00:00 2001 From: Kobe Coleman Date: Fri, 4 Feb 2022 23:25:51 -0500 Subject: [PATCH] Change the name of `get_file_path` function Co-authored-by: Maria Kim Heinert <19576999+mariakimheinert@users.noreply.github.com> --- gatorconfig/gui/cwidgets.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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())