diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-07 19:17:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-07 19:17:42 +0400 |
commit | 115b25673832049b746835357d63d8d2dbee5229 (patch) | |
tree | ca36db0fe4063108ca5820e1d76ae0496fb88f15 /release/scripts/op/presets.py | |
parent | e53bbc7ab7568e315dc3cf06dd5e989300c98786 (diff) |
ran through pep8 checker
Diffstat (limited to 'release/scripts/op/presets.py')
-rw-r--r-- | release/scripts/op/presets.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/op/presets.py b/release/scripts/op/presets.py index 7364f0021ce..132a947218a 100644 --- a/release/scripts/op/presets.py +++ b/release/scripts/op/presets.py @@ -32,7 +32,7 @@ class AddPresetBase(): name = bpy.props.StringProperty(name="Name", description="Name of the preset, used to make the path name", maxlen=64, default="") - def _as_filename(self, name): # could reuse for other presets + def _as_filename(self, name): # could reuse for other presets for char in " !@#$%^&*(){}:\";'[]<>,./?": name = name.replace('.', '_') return name.lower() @@ -44,7 +44,7 @@ class AddPresetBase(): filename = self._as_filename(self.properties.name) + ".py" - target_path = bpy.utils.preset_paths(self.preset_subdir)[0] # we need some way to tell the user and system preset path + target_path = bpy.utils.preset_paths(self.preset_subdir)[0] # we need some way to tell the user and system preset path filepath = os.path.join(target_path, filename) if getattr(self, "save_keyconfig", False): @@ -203,6 +203,7 @@ class AddPresetInteraction(AddPresetBase, bpy.types.Operator): preset_subdir = "interaction" + def register(): pass |