mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-26 20:17:21 +00:00
Fix import errors with swig > 3.0.8 with the libapparmor python bindings. Do this by removing the code to rename the generated LibAppArmor.py, and instead use a stub __init__.py that automatically imports everything from LibAppArmor.py. Also adjust bzrignore to compensate for the autogenerated file name changing. Bug: https://bugzilla.opensuse.org/show_bug.cgi?id=987607 Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Christian Boltz <apparmor@cboltz.de>
7 lines
120 B
Python
7 lines
120 B
Python
import sys
|
|
|
|
if sys.version_info[0] >= 3:
|
|
from LibAppArmor.LibAppArmor import *
|
|
else:
|
|
from .LibAppArmor import *
|