Skip to content

Commit

Permalink
Update the pydockenv shell entrypoint
Browse files Browse the repository at this point in the history
Signed-off-by: Lou Marvin Caraig <[email protected]>
  • Loading branch information
se7entyse7en committed Jun 27, 2020
1 parent e4a6f7c commit 538c319
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/pydockenv
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit 538c319

Please sign in to comment.