commit: 2c3c1bfb3d2f45d67ec250a7d9514952f2685bb0
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 6 07:04:45 2021 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Jul 6 07:04:45 2021 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=2c3c1bfb
ebuild-pyhelper: fix path to python executable
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
bin/ebuild-pyhelper | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/ebuild-pyhelper b/bin/ebuild-pyhelper
index d32bc6f6f..dbddd6e2a 100755
--- a/bin/ebuild-pyhelper
+++ b/bin/ebuild-pyhelper
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!@PORTAGE_BASH@
# Copyright 2010-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
@@ -14,7 +14,7 @@ cd "${PORTAGE_PYM_PATH}" || exit 1
for path in "${PORTAGE_BIN_PATH}/${0##*/}"{.py,}; do
if [[ -x "${path}" ]]; then
PYTHONPATH=${PORTAGE_PYTHONPATH:-${PORTAGE_PYM_PATH}} \
- exec "${PORTAGE_PYTHON:-/usr/bin/python}" "${path}" "$@"
+ exec
"${PORTAGE_PYTHON:-@PREFIX_PORTAGE_PYTHON@/usr/bin/python}" "${path}" "$@"
fi
done
echo "File not found: ${path}" >&2