From a22521e9464dd1d84a1252759f1aaf49a277e971 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Wed, 13 Sep 2017 01:52:13 +0000 Subject: [PATCH] Fix wrong path to `pyvenv.cfg` (fixes #209) --- etc/pyenv.d/which/python-config.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/pyenv.d/which/python-config.bash b/etc/pyenv.d/which/python-config.bash index a0df899..5228b44 100644 --- a/etc/pyenv.d/which/python-config.bash +++ b/etc/pyenv.d/which/python-config.bash @@ -12,7 +12,7 @@ if [ ! -x "${PYENV_COMMAND_PATH}" ] && [[ "${PYENV_COMMAND_PATH##*/}" == "python if [ -f "${PYENV_ROOT}/versions/${version}/bin/conda" ]; then : # do nothing for conda's environments else - if [ -f "${PYENV_ROOT}/versions/${version}/bin/pyvenv.cfg" ]; then + if [ -f "${PYENV_ROOT}/versions/${version}/pyvenv.cfg" ]; then # venv virtualenv_binpath="$(cut -b 1-1024 "${PYENV_ROOT}/versions/${version}/pyvenv.cfg" | sed -n '/^ *home *= */s///p' || true)" virtualenv_prefix="${virtualenv_binpath%/bin}"