From c09476bfee28ab9b48d6e8aabb00063609723bf2 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Sun, 28 Mar 2010 21:10:48 +0000 Subject: [PATCH] [#21807] Import Key Configuration problems For some reason, __import__ doesn't recognize the cfg folder as part of the part. Using exec("import " ... fixes that, but should be investigated further. --- release/scripts/ui/space_userpref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/scripts/ui/space_userpref.py b/release/scripts/ui/space_userpref.py index 9f86c27ca25..4ee1f119f53 100644 --- a/release/scripts/ui/space_userpref.py +++ b/release/scripts/ui/space_userpref.py @@ -1853,7 +1853,7 @@ class WM_OT_keyconfig_import(bpy.types.Operator): else: shutil.move(self.properties.path, path) - __import__(config_name) + exec("import " + config_name) wm = bpy.context.manager wm.active_keyconfig = wm.keyconfigs[config_name]