Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/startup/bl_ui/space_userpref_keymap.py')
-rw-r--r--release/scripts/startup/bl_ui/space_userpref_keymap.py8
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: