Browse Source

fix broken pattern matching to `pythonX.Y-config`

pull/98/head
Yamashita, Yuu 9 years ago
parent
commit
45c73f9073
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      etc/pyenv.d/which/python-config.bash

+ 1
- 1
etc/pyenv.d/which/python-config.bash View File

@ -3,7 +3,7 @@
# version of the virtualenv.
# https://github.com/yyuu/pyenv/issues/397
if [ ! -x "${PYENV_COMMAND_PATH}" ] && [[ "python"*"-config" == "${PYENV_COMMAND_PATH##*/}" ]]; then
if [ ! -x "${PYENV_COMMAND_PATH}" ] && [[ "${PYENV_COMMAND_PATH##*/}" == "python"*"-config" ]]; then
virtualenv_prefix="$(pyenv-virtualenv-prefix 2>/dev/null || true)"
if [ -d "${virtualenv_prefix}" ]; then
virtualenv_command_path="${virtualenv_prefix}/bin/${PYENV_COMMAND_PATH##*/}"

Loading…
Cancel
Save