import bpy from .preferences import KH_Prefs classes = ( KH_Prefs, ) def register_preferences(): from bpy.utils import register_class for cls in classes: register_class(cls) def unregister_preferences(): from bpy.utils import unregister_class for cls in classes: unregister_class(cls)