[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27816] trunk/blender/release/scripts/ui/ space_userpref.py: [#21807] Import Key Configuration problems

Martin Poirier theeth at yahoo.com
Sun Mar 28 23:10:49 CEST 2010


Revision: 27816
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27816
Author:   theeth
Date:     2010-03-28 23:10:48 +0200 (Sun, 28 Mar 2010)

Log Message:
-----------
[#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.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_userpref.py

Modified: trunk/blender/release/scripts/ui/space_userpref.py
===================================================================
--- trunk/blender/release/scripts/ui/space_userpref.py	2010-03-28 20:50:20 UTC (rev 27815)
+++ trunk/blender/release/scripts/ui/space_userpref.py	2010-03-28 21:10:48 UTC (rev 27816)
@@ -1853,7 +1853,7 @@
         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]





More information about the Bf-blender-cvs mailing list