diff options
-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 |