From b46f39d973e8f4941319a804daa5b16544573068 Mon Sep 17 00:00:00 2001 From: Jacob Wahlman <jacwa448@student.liu.se> Date: Sun, 24 May 2020 15:34:27 +0200 Subject: [PATCH] fixup --- b_asic/GUI/drag_button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b_asic/GUI/drag_button.py b/b_asic/GUI/drag_button.py index 2b2a2119..d300315f 100644 --- a/b_asic/GUI/drag_button.py +++ b/b_asic/GUI/drag_button.py @@ -92,7 +92,7 @@ class DragButton(QPushButton): self.pressed = not pressed self.setStyleSheet(f"background-color: {'white' if not self.pressed else 'grey'}; border-style: solid;\ border-color: black; border-width: 2px") - path_to_image = os.path.join('operation_icons', f"{self.operation_path_name}{'_grey.png' if self.pressed else '.png'}") + path_to_image = os.path.join(os.path.dirname(__file__), 'operation_icons', f"{self.operation_path_name}{'_grey.png' if self.pressed else '.png'}") self.setIcon(QIcon(path_to_image)) self.setIconSize(QSize(55, 55)) -- GitLab