summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/helper.py5
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'))
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157