mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 21:42:43 +00:00
list virtual environments created by anaconda/miniconda as a version in pyenv
This commit is contained in:
parent
8f25eabbbc
commit
3937dc3618
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue