about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-03-16 00:21:12 +0100
committerhut <hut@lavabit.com>2012-03-16 00:21:12 +0100
commit895be920518ab346c1e58e884d7d2a0902606d2f (patch)
tree93080908e6a94a1eae87ae69b9f3102fefd43a40 /ranger
parent6f8ca83b677412aee792e55d24c62b7d24d4ea84 (diff)
downloadranger-895be920518ab346c1e58e884d7d2a0902606d2f.tar.gz
ext.get_executables: speed optimization
Diffstat (limited to 'ranger')
-rw-r--r--ranger/ext/get_executables.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/ext/get_executables.py b/ranger/ext/get_executables.py
index db74b135..2452f9ec 100644
--- a/ranger/ext/get_executables.py
+++ b/ranger/ext/get_executables.py
@@ -4,7 +4,6 @@
 from stat import S_IXOTH, S_IFREG
 from ranger.ext.iter_tools import unique
 from os import listdir, environ, stat
-from os.path import join
 
 
 _cached_executables = None
@@ -42,7 +41,7 @@ def get_executables_uncached(*paths):
 		except:
 			continue
 		for item in content:
-			abspath = join(path, item)
+			abspath = path + '/' + item
 			try:
 				filestat = stat(abspath)
 			except:
color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
set tabstop=8
set softtabstop=2
set shiftwidth=2