diff options
author | hut <hut@lavabit.com> | 2011-10-01 21:59:30 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-01 21:59:30 +0200 |
commit | 6059e03b3da9eea322d7bf28817fb3b035b7bf34 (patch) | |
tree | d87f83e06913b83e1b2d2e084dd984e3190fc10a | |
parent | 0b09b9e55e08ed42469601783e224d799077e97b (diff) | |
download | ranger-6059e03b3da9eea322d7bf28817fb3b035b7bf34.tar.gz |
core.helper: fixed command loading with --clean
-rw-r--r-- | ranger/core/helper.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/core/helper.py b/ranger/core/helper.py index 2329c332..d8081b01 100644 --- a/ranger/core/helper.py +++ b/ranger/core/helper.py @@ -166,7 +166,10 @@ def load_settings(fm, clean): comcont = ranger.api.commands.CommandContainer() ranger.api.commands.alias = comcont.alias from ranger.defaults import commands, apps - comcont.load_commands_from_object(fm, dir(Actions)) + comcont = ranger.api.commands.CommandContainer() + exclude = ['settings'] + include = [name for name in dir(Actions) if name not in exclude] + comcont.load_commands_from_object(fm, include) comcont.load_commands_from_module(commands) fm.commands = comcont fm.source_cmdlist(fm.relpath('defaults', 'rc.conf')) |