1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Description: The help files have been moved outside of the python module, adjust the path to them
Author: Laurent Bigonville <bigon@debian.org>
Forwarded: not-needed
--- a/sepolicy/sepolicy/gui.py
+++ b/sepolicy/sepolicy/gui.py
@@ -77,7 +77,6 @@ def cmp(a, b):
return 1
return (a > b) - (a < b)
-import sysconfig
ADVANCED_LABEL = (_("Advanced >>"), _("Advanced <<"))
ADVANCED_SEARCH_LABEL = (_("Advanced Search >>"), _("Advanced Search <<"))
OUTBOUND_PAGE = 0
@@ -102,6 +101,8 @@ SYSTEM_PAGE = 7
FILE_EQUIV_PAGE = 8
START_PAGE = 9
+SEPOLICY_SHARED_FILE_PATH = "/usr/share/sepolicy/"
+
keys = ["boolean", "fcontext", "fcontext-equiv", "port", "login", "user", "module", "node", "interface"]
DISABLED_TEXT = _("""<small>
@@ -130,7 +131,7 @@ class SELinuxGui():
self.application = app
self.filter_txt = ""
builder = Gtk.Builder() # BUILDER OBJ
- self.code_path = sysconfig.get_path('purelib', vars={'base': "/usr"}) + "/sepolicy/"
+ self.code_path = SEPOLICY_SHARED_FILE_PATH
glade_file = self.code_path + "sepolicy.glade"
builder.add_from_file(glade_file)
self.outer_notebook = builder.get_object("outer_notebook")
|