1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 14:53:53 -05:00

Merge pull request #471 from yyuu/activate-ng

List Anaconda-style virtual environments as a version in pyenv
This commit is contained in:
Yamashita, Yuu
2015-11-05 18:42:03 +09:00

View File

@@ -53,6 +53,12 @@ shopt -s nullglob
for path in "${PYENV_ROOT}/versions/"*; do for path in "${PYENV_ROOT}/versions/"*; do
if [ -d "$path" ]; then if [ -d "$path" ]; then
print_version "${path##*/}" 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 fi
done done
shopt -u nullglob shopt -u nullglob