diff --git a/modules/lang/python/autoload/python.el b/modules/lang/python/autoload/python.el index 753f0f636..84fcbcecd 100644 --- a/modules/lang/python/autoload/python.el +++ b/modules/lang/python/autoload/python.el @@ -45,7 +45,7 @@ (cond ((when python-shell-virtualenv-root (let ((bin (expand-file-name exe-root python-shell-virtualenv-root))) (if (file-exists-p bin) bin)))) - ((when (bound-and-true-p conda-env-current-name) + ((when (require 'conda nil t) (let ((bin (expand-file-name (concat conda-env-current-name "/" exe-root) (conda-env-location)))) (if (file-executable-p bin) bin))))