fix(python): type error if conda-anaconda-home is unset
Amend: 8f60a1bc46
This commit is contained in:
parent
632a091abb
commit
01c19094e8
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@
|
||||||
;; explicitly. Afterwards, run M-x `conda-env-activate' to switch between
|
;; explicitly. Afterwards, run M-x `conda-env-activate' to switch between
|
||||||
;; environments
|
;; environments
|
||||||
(or (cl-loop for dir in (cons conda-anaconda-home conda-home-candidates)
|
(or (cl-loop for dir in (cons conda-anaconda-home conda-home-candidates)
|
||||||
if (file-directory-p dir)
|
if (and dir (file-directory-p dir))
|
||||||
return (setq conda-anaconda-home (expand-file-name dir)
|
return (setq conda-anaconda-home (expand-file-name dir)
|
||||||
conda-env-home-directory (expand-file-name dir)))
|
conda-env-home-directory (expand-file-name dir)))
|
||||||
(message "Cannot find Anaconda installation"))
|
(message "Cannot find Anaconda installation"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue