import bpy import os from ..common import icons def initialize_icons_collection(): import bpy.utils.previews icons.icons_collection = bpy.utils.previews.new() def unload_icons(): bpy.utils.previews.remove(icons.icons_collection) def register_icons(): initialize_icons_collection() def unregister_icons(): unload_icons()