mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-19 09:03:41 -05:00
detect conda environments
non-base conda environments lack bin/conda apply same solution as #290
This commit is contained in:
@@ -139,7 +139,7 @@ detect_venv() {
|
|||||||
# Check the existence of executables as a workaround for the issue with pyenv-which-ext
|
# Check the existence of executables as a workaround for the issue with pyenv-which-ext
|
||||||
# https://github.com/yyuu/pyenv-virtualenv/issues/26
|
# https://github.com/yyuu/pyenv-virtualenv/issues/26
|
||||||
local prefix="$(pyenv-prefix)"
|
local prefix="$(pyenv-prefix)"
|
||||||
if [ -x "${prefix}/bin/conda" ]; then
|
if [ -d "${prefix}/conda-meta" ] || [ -x "${prefix}/bin/conda" ]; then
|
||||||
HAS_CONDA=1
|
HAS_CONDA=1
|
||||||
else
|
else
|
||||||
if [ -x "${prefix}/bin/virtualenv" ]; then
|
if [ -x "${prefix}/bin/virtualenv" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user