dev-python/virtualenvwrapper: get absolute path for python executable

* Using the absolute path avoid issues when going inside the venv

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
This commit is contained in:
Alfred Wingate
2023-07-22 06:11:16 +03:00
committed by Matthew Thode
parent 0b0f69b88d
commit 0c64ab06a4

View File

@@ -51,7 +51,7 @@ src_prepare() {
# specify default python interpeter to align with PYTHON_SINGLE_TARGET
sed -i -e \
"s|\(_virtualenvwrapper_python_executable=\"\)\$(.*)\(\"\)|\1${EPYTHON}\2|" \
"s|\(_virtualenvwrapper_python_executable=\"\$(\).\w\((\"\)|\1command -v ${EPYTHON}\2|" \
virtualenvwrapper.sh || die
# remove tests which require an internet connection