summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-09-30 21:38:21 +0200
committerhut <hut@lavabit.com>2011-09-30 21:38:21 +0200
commite63f79cfc54e14f69953a323cea7caf3f2532712 (patch)
tree65bccc7fc1007f10b55365019ca2a18ab4bfcbef /ranger
parente622c4c46c6256e1fe9436e70683bbf30f5649e3 (diff)
downloadranger-e63f79cfc54e14f69953a323cea7caf3f2532712.tar.gz
core.helper: dont try to turn fm.settings into a command
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/helper.py4
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