mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
Fix wrong path to pyvenv.cfg (fixes #209)
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user