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/ui/space_userpref_keymap.py')
-rw-r--r--release/scripts/ui/space_userpref_keymap.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/release/scripts/ui/space_userpref_keymap.py b/release/scripts/ui/space_userpref_keymap.py
index 961b138ab7e..37007c65f7a 100644
--- a/release/scripts/ui/space_userpref_keymap.py
+++ b/release/scripts/ui/space_userpref_keymap.py
@@ -508,7 +508,7 @@ class WM_OT_keyconfig_import(bpy.types.Operator):
bl_idname = "wm.keyconfig_import"
bl_label = "Import Key Configuration..."
- path = StringProperty(name="File Path", description="File path to write file to")
+ filepath = StringProperty(name="File Path", description="Filepath to write file to")
filename = StringProperty(name="File Name", description="Name of the file")
directory = StringProperty(name="Directory", description="Directory of the file")
filter_folder = BoolProperty(name="Filter folders", description="", default=True, options={'HIDDEN'})
@@ -518,10 +518,10 @@ class WM_OT_keyconfig_import(bpy.types.Operator):
keep_original = BoolProperty(name="Keep original", description="Keep original file after copying to configuration folder", default=True)
def execute(self, context):
- if not self.properties.path:
- raise Exception("File path not set")
+ if not self.properties.filepath:
+ raise Exception("Filepath not set")
- f = open(self.properties.path, "r")
+ f = open(self.properties.filepath, "r")
if not f:
raise Exception("Could not open file")
@@ -545,9 +545,9 @@ class WM_OT_keyconfig_import(bpy.types.Operator):
path = os.path.join(path, config_name + ".py")
if self.properties.keep_original:
- shutil.copy(self.properties.path, path)
+ shutil.copy(self.properties.filepath, path)
else:
- shutil.move(self.properties.path, path)
+ shutil.move(self.properties.filepath, path)
exec("import " + config_name)
@@ -569,7 +569,7 @@ class WM_OT_keyconfig_export(bpy.types.Operator):
bl_idname = "wm.keyconfig_export"
bl_label = "Export Key Configuration..."
- path = StringProperty(name="File Path", description="File path to write file to")
+ filepath = StringProperty(name="File Path", description="Filepath to write file to")
filename = StringProperty(name="File Name", description="Name of the file")
directory = StringProperty(name="Directory", description="Directory of the file")
filter_folder = BoolProperty(name="Filter folders", description="", default=True, options={'HIDDEN'})
@@ -578,10 +578,10 @@ class WM_OT_keyconfig_export(bpy.types.Operator):
kc_name = StringProperty(name="KeyConfig Name", description="Name to save the key config as")
def execute(self, context):
- if not self.properties.path:
- raise Exception("File path not set")
+ if not self.properties.filepath:
+ raise Exception("Filepath not set")
- f = open(self.properties.path, "w")
+ f = open(self.properties.filepath, "w")
if not f:
raise Exception("Could not open file")
@@ -591,7 +591,7 @@ class WM_OT_keyconfig_export(bpy.types.Operator):
if self.properties.kc_name != '':
name = self.properties.kc_name
elif kc.name == 'Blender':
- name = os.path.splitext(os.path.basename(self.properties.path))[0]
+ name = os.path.splitext(os.path.basename(self.properties.filepath))[0]
else:
name = kc.name