mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 05:47:59 +00:00
utils/apparmor/yasti.py: work around ycp not being available everywhere
This commit is contained in:
parent
3b726b996d
commit
56b01b6eaa
@ -12,8 +12,12 @@
|
||||
#
|
||||
# ----------------------------------------------------------------------
|
||||
import re
|
||||
import ycp
|
||||
import sys
|
||||
try:
|
||||
import ycp
|
||||
except ImportError:
|
||||
# ycp isn't found everywhere.
|
||||
ycp = None
|
||||
|
||||
from apparmor.common import error, DebugLogger
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user