Merge branch 'master' into blender2.8
authorCampbell Barton <ideasman42@gmail.com>
Mon, 12 Nov 2018 21:25:46 +0000 (08:25 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 12 Nov 2018 21:25:50 +0000 (08:25 +1100)
release/scripts/startup/bl_operators/wm.py

index 5431ba6284f8622c1de4fdec7d5c39ce0a3dcd80..92ac18e0f6f0e7531c01b04b0fb3d64aca74a149 100644 (file)
@@ -1445,10 +1445,10 @@ class WM_OT_appconfig_activate(Operator):
 
     def execute(self, context):
         import os
-        bpy.utils.keyconfig_set(self.filepath)
-
-        filepath = self.filepath.replace("keyconfig", "interaction")
-
+        filepath = self.filepath
+        bpy.utils.keyconfig_set(filepath)
+        dirname, filename = os.path.split(filepath)
+        filepath = os.path.normpath(os.path.join(dirname, os.pardir, "interaction", filename))
         if os.path.exists(filepath):
             bpy.ops.script.execute_preset(
                 filepath=filepath,