diff --git a/selinux/__init__.py b/selinux/__init__.py index ef94efd..7061a3d 100644 --- a/selinux/__init__.py +++ b/selinux/__init__.py @@ -77,6 +77,9 @@ def get_system_sitepackages(): [str(item) for item in platform.python_version_tuple()[0:2]] ) + if not os.path.isfile(system_python): + system_python = "/usr/bin/python%s" % platform.python_version_tuple()[0] + system_sitepackages = json.loads( subprocess.check_output( [