From ce70c48c28a68d1f826f95b8e3cdb4158efaec2e Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Sun, 7 Jun 2015 10:02:53 -0400 Subject: [PATCH] SEToolsWidget: change ui path to use sys.prefix. --- setoolsgui/widget.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setoolsgui/widget.py b/setoolsgui/widget.py index e03d853..f558dec 100644 --- a/setoolsgui/widget.py +++ b/setoolsgui/widget.py @@ -16,6 +16,7 @@ # License along with SETools. If not, see # . # +import sys from PyQt5.uic import loadUi @@ -24,7 +25,7 @@ class SEToolsWidget(object): def load_ui(self, filename): # If we are in the git repo, look at the local # UI file, otherwise look at the installed file. - for path in ["data/", "/usr/share/setools/"]: + for path in ["data/", sys.prefix + "/share/setools/"]: try: loadUi(path + filename, self) break