# Open user preferences directly into Add-ons tab

I'm using a script to show the User Preferences dialog:

bpy.ops.screen.userpref_show('INVOKE_DEFAULT')


But it shows the preferences "input" tab, and I want it to show the "Ad-ons" tab. I tried using this:

bpy.types.UserPreferences.active_section


It didn't work. How can I do that?

bpy.context.preferences.active_section = 'ADDONS'