python: Fix detection of sepolicy.glade location
Commit c08cf24f39
("python: Remove dependency on the Python module
distutils") replace usage of distutils.sysconfig by sysconfig but it was
forgotten on the fact that the later provide a different api.
Fixes:
self.code_path = sysconfig.get_python_lib(plat_specific=False) + "/sepolicy/"
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'sysconfig' has no attribute 'get_python_lib'
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
a9517c3896
commit
98c637c4cc
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ class SELinuxGui():
|
|||
self.application = app
|
||||
self.filter_txt = ""
|
||||
builder = Gtk.Builder() # BUILDER OBJ
|
||||
self.code_path = sysconfig.get_python_lib(plat_specific=False) + "/sepolicy/"
|
||||
self.code_path = sysconfig.get_path('purelib', vars={'base': "/usr"}) + "/sepolicy/"
|
||||
glade_file = self.code_path + "sepolicy.glade"
|
||||
builder.add_from_file(glade_file)
|
||||
self.outer_notebook = builder.get_object("outer_notebook")
|
||||
|
|
Loading…
Reference in a new issue