summary refs log tree commit diff stats
path: root/ranger/gui
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-12 11:29:05 +0200
committerhut <hut@lavabit.com>2010-04-12 11:29:05 +0200
commitbd0ede8de02eb47625464c1b48b11a68517c9232 (patch)
treec1ce266edd4962f6d8fef19370aaab5597f46821 /ranger/gui
parent444f836128a96ec877d1a4a7412be5d185cc6464 (diff)
downloadranger-bd0ede8de02eb47625464c1b48b11a68517c9232.tar.gz
cleanup
Conflicts:

	ranger/gui/widgets/console.py
Diffstat (limited to 'ranger/gui')
-rw-r--r--ranger/gui/widgets/console.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 777ef3f6..7a3546e9 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -27,6 +27,8 @@ from ranger.defaults import commands
 from ranger.gui.widgets.console_mode import is_valid_mode, mode_to_class
 from ranger import log, relpath_conf
 from ranger.ext.shell_escape import shell_quote
+from ranger.ext.get_executables import get_executables
+from ranger.ext.direction import Direction
 import ranger
 
 DEFAULT_HISTORY = 0
@@ -442,8 +444,8 @@ class OpenConsole(ConsoleWithTab):
 		try:
 			position_of_last_space = line.rindex(" ")
 		except ValueError:
-			return (start + program + ' ' for program in self.fm.executables \
-					if program.startswith(line))
+			return (start + program + ' ' for program \
+					in get_executables() if program.startswith(line))
 		if position_of_last_space == len(line) - 1:
 			return self.line + '%s '
 		else:
@@ -612,7 +614,7 @@ class QuickOpenConsole(ConsoleWithTab):
 
 	def _is_app(self, arg):
 		return self.fm.apps.has(arg) or \
-			(not self._is_flags(arg) and arg in self.fm.executables)
+			(not self._is_flags(arg) and arg in get_executables())
 
 	def _is_flags(self, arg):
 		from ranger.core.runner import ALLOWED_FLAGS