From 11373742d701166f2580cfe67015eac012cda1a9 Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Thu, 21 Dec 2023 12:20:20 -0800 Subject: Fix UI file loading --- src/add_entry_form.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/add_entry_form.py') diff --git a/src/add_entry_form.py b/src/add_entry_form.py index ff66a19..9a2d260 100644 --- a/src/add_entry_form.py +++ b/src/add_entry_form.py @@ -10,7 +10,8 @@ import src.db_sqlite as DB class addEntryForm(QDialog): def __init__(self, parent): super().__init__() - uic.loadUi(os.path.join("src", "add_entry_form.ui"), self) + uic.loadUi(os.path.join(os.path.dirname(os.path.abspath(__file__)), + "add_entry_form.ui"), self) self.initializeUI(parent) def initializeUI(self, parent): -- cgit