commit: f5e16983117b9fb44c4121a65ce4ced93f432c2c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 16:37:35 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 16 16:37:35 2016 +0000
URL:
https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=f5e16983
Respect EPYTHON when looking for installed intepreters
python.eselect.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)