Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created June 9, 2015 11:10
Show Gist options
  • Save zeffii/c3cf4da2e859d1b404bc to your computer and use it in GitHub Desktop.
Save zeffii/c3cf4da2e859d1b404bc to your computer and use it in GitHub Desktop.
import bpy
addon_name = ''
bpy.ops.screen.userpref_show("INVOKE_DEFAULT")
bpy.context.user_preferences.active_section = "ADDONS"
bpy.data.window_managers['WinMan'].addon_search = addon_name
bpy.ops.wm.addon_expand(module=addon_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment