Cleanup: move bpy_extras.keyconfig_utils to own module

bpy_extras were meant to be useful high-level helper functions for
script authors to perform common operations,
to avoid writing to verbose API's.

bpy_extras.keymap_utils contains some specialized API calls
mainly intended for Blender's own internal use.

Move keymap import export to internal API.
This commit is contained in:
Campbell Barton
2018-11-20 10:56:50 +11:00
parent d870e7d930
commit f8c16b0175
8 changed files with 318 additions and 284 deletions

View File

@@ -1613,7 +1613,7 @@ class WM_OT_keyconfig_export(Operator):
)
def execute(self, context):
from bpy_extras import keyconfig_utils
from bl_keymap_utils.io import keyconfig_export_as_data
if not self.filepath:
raise Exception("Filepath not set")
@@ -1623,7 +1623,7 @@ class WM_OT_keyconfig_export(Operator):
wm = context.window_manager
keyconfig_utils.keyconfig_export_as_data(
keyconfig_export_as_data(
wm,
wm.keyconfigs.active,
self.filepath,