diff options
author | Nathan Lovato <nathan@gdquest.com> | 2021-01-24 03:17:35 +0300 |
---|---|---|
committer | Nathan Lovato <nathan@gdquest.com> | 2021-01-24 03:17:35 +0300 |
commit | cd176b2617bd3ede969c3aa218ee54a79fc69f27 (patch) | |
tree | b4f51b2c46a95f1ebb8a001269cd8ae6f417bf2a /power_sequencer/operators/__init__.py | |
parent | b482ca0078d5640306985f478bb1dec3dbe7219b (diff) |
Update power sequencer to v2.0.1
Changelog: https://github.com/GDQuest/blender-power-sequencer/blob/master/CHANGELOG.md#power-sequencer-201
Commit range: https://github.com/GDQuest/blender-power-sequencer/compare/1.5.0...2.0.1
Diffstat (limited to 'power_sequencer/operators/__init__.py')
-rwxr-xr-x | power_sequencer/operators/__init__.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/power_sequencer/operators/__init__.py b/power_sequencer/operators/__init__.py index 064ba9b3..406c8635 100755 --- a/power_sequencer/operators/__init__.py +++ b/power_sequencer/operators/__init__.py @@ -22,17 +22,13 @@ def get_operator_classes(): """Returns the list of operators in the add-on""" this_file = os.path.dirname(__file__) module_files = [ - f - for f in os.listdir(this_file) - if f.endswith(".py") and not f.startswith("__init__") + f for f in os.listdir(this_file) if f.endswith(".py") and not f.startswith("__init__") ] module_paths = ["." + os.path.splitext(f)[0] for f in module_files] classes = [] for path in module_paths: module = importlib.import_module(path, package="power_sequencer.operators") - operator_names = [ - entry for entry in dir(module) if entry.startswith("POWER_SEQUENCER_OT") - ] + operator_names = [entry for entry in dir(module) if entry.startswith("POWER_SEQUENCER_OT")] classes.extend([getattr(module, name) for name in operator_names]) return classes @@ -41,9 +37,7 @@ doc = { "sequencer.refresh_all": { "name": "Refresh All", "description": "", - "shortcuts": [ - ({"type": "R", "value": "PRESS", "shift": True}, {}, "Refresh All") - ], + "shortcuts": [({"type": "R", "value": "PRESS", "shift": True}, {}, "Refresh All")], "demo": "", "keymap": "Sequencer", } |