fix(python): deprioritize ~/.conda detection
Since ~/.conda is always created, whether or not the other possibilities exist, best we treat it as a last resort. Fix: #6071
This commit is contained in:
parent
6a038068d2
commit
80ac69c14e
1 changed files with 2 additions and 2 deletions
|
@ -265,7 +265,6 @@
|
|||
;; explicitly. Afterwards, run M-x `conda-env-activate' to switch between
|
||||
;; environments
|
||||
(or (cl-loop for dir in (list conda-anaconda-home
|
||||
"~/.conda"
|
||||
"~/.anaconda"
|
||||
"~/.miniconda"
|
||||
"~/.miniconda3"
|
||||
|
@ -277,7 +276,8 @@
|
|||
"/usr/bin/anaconda3"
|
||||
"/usr/local/anaconda3"
|
||||
"/usr/local/miniconda3"
|
||||
"/usr/local/Caskroom/miniconda/base")
|
||||
"/usr/local/Caskroom/miniconda/base"
|
||||
"~/.conda")
|
||||
if (file-directory-p dir)
|
||||
return (setq conda-anaconda-home (expand-file-name dir)
|
||||
conda-env-home-directory (expand-file-name dir)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue