From 538c3191e72b03815bc5627a215080913cb8a2d3 Mon Sep 17 00:00:00 2001 From: Lou Marvin Caraig Date: Sat, 6 Jun 2020 13:49:19 +0200 Subject: [PATCH] Update the pydockenv shell entrypoint Signed-off-by: Lou Marvin Caraig --- bin/pydockenv | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/pydockenv b/bin/pydockenv index f902199..6f559c3 100755 --- a/bin/pydockenv +++ b/bin/pydockenv @@ -23,10 +23,8 @@ else fi fi -python=${PYDOCKENV_INTERPRETER:-python} - -pydockenv_entry_point=$($python -c 'from pydockenv import cli; print(cli.__file__)') -$python $pydockenv_entry_point $@ +pydockenv_exec_base=$(python -c 'import sys; import os; print(os.path.join(sys.prefix, "bin"))') +${PYDOCKENV_EXEC_PATH:-$pydockenv_exec_base}/pydockenv_exec $@ exitCode=$? if [ $exitCode -eq 0 ]