Quellcode durchsuchen

Use glob to check if the virtualenv is inside pyenv's prefix or not

pull/123/head
Yamashita, Yuu vor 8 Jahren
Ursprung
Commit
0bbb12a3bf
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      bin/pyenv-sh-activate

+ 1
- 1
bin/pyenv-sh-activate Datei anzeigen

@ -70,7 +70,7 @@ fi
venv="${versions}"
# exit as success if some virtualenv outside from pyenv is already activated
if [ -n "${VIRTUAL_ENV}" ] && [[ "${VIRTUAL_ENV}" == "${VIRTUAL_ENV#${PYENV_ROOT}/versions/}" ]]; then
if [ -n "${VIRTUAL_ENV}" ] && [[ "${VIRTUAL_ENV}" != "${PYENV_ROOT}/versions/"* ]]; then
if [ -z "${FORCE}" ]; then
if [ -z "${QUIET}" ]; then
echo "pyenv-virtualenv: virtualenv \`${VIRTUAL_ENV}' is already activated" 1>&2

Laden…
Abbrechen
Speichern