Skip to content

Commit 9c23313

Browse files
committed
detect conda environments
non-base conda environments lack bin/conda apply same solution as pyenv#290
1 parent 294f64f commit 9c23313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/pyenv-virtualenv

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ detect_venv() {
139139
# Check the existence of executables as a workaround for the issue with pyenv-which-ext
140140
# https://github.com/yyuu/pyenv-virtualenv/issues/26
141141
local prefix="$(pyenv-prefix)"
142-
if [ -x "${prefix}/bin/conda" ]; then
142+
if [ -d "${prefix}/conda-meta" ] || [ -x "${prefix}/bin/conda" ]; then
143143
HAS_CONDA=1
144144
else
145145
if [ -x "${prefix}/bin/virtualenv" ]; then

0 commit comments

Comments
 (0)