detect conda environments

non-base conda environments lack bin/conda
apply same solution as #290
This commit is contained in:
Luis Marsano
2019-10-09 06:05:18 -04:00
parent 294f64f76b
commit 9c233132eb

View File

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