From 6059e03b3da9eea322d7bf28817fb3b035b7bf34 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 1 Oct 2011 21:59:30 +0200 Subject: core.helper: fixed command loading with --clean --- ranger/core/helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')) -- cgit 1.4.1-2-gfad0