Ver a proveniência

Fix wrong path to `pyvenv.cfg` (fixes #209)

pull/237/head
Yamashita, Yuu há 7 anos
ascendente
cometimento
a22521e946
1 ficheiros alterados com 1 adições e 1 eliminações
  1. +1
    -1
      etc/pyenv.d/which/python-config.bash

+ 1
- 1
etc/pyenv.d/which/python-config.bash Ver ficheiro

@ -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}"

Carregando…
Cancelar
Guardar