diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-03 12:21:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-03 12:21:11 +0400 |
commit | cd2728ea0df44852942a8d294fbf4c0f54cb5a57 (patch) | |
tree | 1c72b50e67898fcbb7416c550a4ef7ba2227af94 /release/scripts | |
parent | 809252664b868f62169cf690b06859b6b6ae5ea7 (diff) |
fix [#27143] Cannot import key configuration with systemwide install
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref_keymap.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref_keymap.py b/release/scripts/startup/bl_ui/space_userpref_keymap.py index 2fbaae499e7..378fe231091 100644 --- a/release/scripts/startup/bl_ui/space_userpref_keymap.py +++ b/release/scripts/startup/bl_ui/space_userpref_keymap.py @@ -555,13 +555,7 @@ class WM_OT_keyconfig_import(bpy.types.Operator): config_name = basename(self.filepath) - path = bpy.utils.preset_paths("keyconfig")[0] # we need some way to tell the user and system preset path - print(path) - - # create config folder if needed - if not os.path.exists(path): - os.mkdir(path) - + path = bpy.utils.user_resource('SCRIPTS', os.path.join("presets", "keyconfig"), create=True) path = os.path.join(path, config_name) if self.keep_original: |