Message ID | 20221208194335.479739-2-lautrbach@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 98c637c4cc2f |
Headers | show |
Series | [1/2] sepolicy: Switch main selection menu to GtkPopover | expand |
diff --git a/python/sepolicy/sepolicy/gui.py b/python/sepolicy/sepolicy/gui.py index 53f3c6148b58..04208049360d 100644 --- a/python/sepolicy/sepolicy/gui.py +++ b/python/sepolicy/sepolicy/gui.py @@ -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")
Commit c08cf24f3998 ("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> --- python/sepolicy/sepolicy/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)