Workaround for the issue with pyenv-which-ext (refs #26)

This commit is contained in:
Yamashita Yuu
2014-06-15 18:08:10 +09:00
parent 4a6ef11349
commit dc12a345d8
6 changed files with 94 additions and 67 deletions

View File

@@ -96,3 +96,13 @@ assert_output_contains() {
} | flunk
}
}
create_executable() {
mkdir -p "${PYENV_ROOT}/versions/$1/bin"
touch "${PYENV_ROOT}/versions/$1/bin/$2"
chmod +x "${PYENV_ROOT}/versions/$1/bin/$2"
}
remove_executable() {
rm -f "${PYENV_ROOT}/versions/$1/bin/$2"
}