Parcourir la source

Merge pull request #471 from yyuu/activate-ng

List Anaconda-style virtual environments as a version in pyenv
pull/477/head
Yamashita, Yuu il y a 9 ans
Parent
révision
12ad6f670b
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. +6
    -0
      libexec/pyenv-versions

+ 6
- 0
libexec/pyenv-versions Voir le fichier

@ -53,6 +53,12 @@ shopt -s nullglob
for path in "${PYENV_ROOT}/versions/"*; do
if [ -d "$path" ]; then
print_version "${path##*/}"
# virtual environments created by anaconda/miniconda
for env_path in "${path}/envs/"*; do
if [ -d "${env_path}" ]; then
print_version "${env_path#${PYENV_ROOT}/versions/}"
fi
done
fi
done
shopt -u nullglob

Chargement…
Annuler
Enregistrer