Is it possible to auto enable addon? Is there some line of code I could place in the addon. I found several lines of code ,but can’t seem to get anything to work.
Solved my problem for what I was needing, still may be a better way to do it.
addon_utils.enable( module_name, default_set=False, persistent=False, handle_error=None)
import addon_utils addon_utils.enable("my_addon")
bpy.ops.wm.addon_enable(module = "addon")