mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 22:03:52 -05:00
Import rbenv changes at 7e0e85bdda
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
unset PYENV_VERSION
|
||||
unset PYENV_DIR
|
||||
|
||||
PYENV_TEST_DIR="${BATS_TMPDIR}/pyenv"
|
||||
if enable -f "${BATS_TEST_DIRNAME}"/../libexec/pyenv-realpath.dylib realpath 2>/dev/null; then
|
||||
PYENV_TEST_DIR="$(realpath "$BATS_TMPDIR")/pyenv"
|
||||
else
|
||||
if [ -n "$PYENV_NATIVE_EXT" ]; then
|
||||
echo "pyenv: failed to load \`realpath' builtin" >&2
|
||||
exit 1
|
||||
fi
|
||||
PYENV_TEST_DIR="${BATS_TMPDIR}/pyenv"
|
||||
fi
|
||||
|
||||
# guard against executing this block twice due to bats internals
|
||||
if [ "$PYENV_ROOT" != "${PYENV_TEST_DIR}/root" ]; then
|
||||
|
||||
Reference in New Issue
Block a user