From 9c233132eb7d296613e26c40adae5f4be20b7cfa Mon Sep 17 00:00:00 2001 From: Luis Marsano Date: Wed, 9 Oct 2019 06:05:18 -0400 Subject: [PATCH] detect conda environments non-base conda environments lack bin/conda apply same solution as #290 --- bin/pyenv-virtualenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index 01a0ffc..52e1c9f 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -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