2
0
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:
Steve Beattie 2014-02-13 11:14:34 -08:00
parent 3b726b996d
commit 56b01b6eaa

View File

@ -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