[#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.
This commit is contained in:
Martin Poirier 2010-03-28 21:10:48 +00:00
parent 03c81862c4
commit c09476bfee

@ -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]