diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-07 07:47:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-07 07:47:54 +0300 |
commit | 6981861fcfdace963b4487fa8c86a04fb25bb050 (patch) | |
tree | 9a15a12908cbc098d1449da441594c62fc97f6cd /release/scripts/startup/bl_operators/wm.py | |
parent | 1e4b612d6a63ce781f229ddd6e3073a5d6951950 (diff) |
Cleanup: Python context access
Avoid access from bpy when it's already declared.
Diffstat (limited to 'release/scripts/startup/bl_operators/wm.py')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index cf07152d979..022ee1576d8 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -2223,7 +2223,7 @@ class WM_OT_addon_userpref_show(Operator): info = addon_utils.module_bl_info(mod) info["show_expanded"] = True - bpy.context.user_preferences.active_section = 'ADDONS' + context.user_preferences.active_section = 'ADDONS' context.window_manager.addon_filter = 'All' context.window_manager.addon_search = info["name"] bpy.ops.screen.userpref_show('INVOKE_DEFAULT') |