diff options
author | hut <hut@lavabit.com> | 2011-09-30 21:38:21 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-09-30 21:38:21 +0200 |
commit | e63f79cfc54e14f69953a323cea7caf3f2532712 (patch) | |
tree | 65bccc7fc1007f10b55365019ca2a18ab4bfcbef /ranger | |
parent | e622c4c46c6256e1fe9436e70683bbf30f5649e3 (diff) | |
download | ranger-e63f79cfc54e14f69953a323cea7caf3f2532712.tar.gz |
core.helper: dont try to turn fm.settings into a command
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/helper.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/core/helper.py b/ranger/core/helper.py index 1c6460d1..677b0a11 100644 --- a/ranger/core/helper.py +++ b/ranger/core/helper.py @@ -95,7 +95,9 @@ def load_settings(fm, clean): # Load commands comcont = ranger.api.commands.CommandContainer() - comcont.load_commands_from_object(fm, dir(Actions)) + exclude = ['settings'] + include = [name for name in dir(Actions) if name not in exclude] + comcont.load_commands_from_object(fm, include) ranger.api.commands.alias = comcont.alias try: import commands |