summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python.eselect.in')
-rw-r--r--python.eselect.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.eselect.in b/python.eselect.in
index 196140e..7edcb96 100644
--- a/python.eselect.in
+++ b/python.eselect.in
@@ -21,7 +21,7 @@ get_installed_pythons() {
# filter by type
[[ ${1} == --py* && ${i} != python${1:4}* ]] && continue
# filter to installed only
- if type -P "${i}" &>/dev/null; then
+ if [[ -x ${INTERPRETER_PATH}/${i} ]]; then
echo "${i}"
fi
done < <(python-exec2c -l)