File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 31
31
:group 'python )
32
32
33
33
(defcustom conda-home-candidates
34
- '(" ~/.anaconda3" " ~/miniconda3" " ~/mambaforge" " ~/anaconda" " ~/miniconda" " ~/mamba" " ~/.conda" )
34
+ (list " ~/.anaconda"
35
+ " ~/.anaconda3"
36
+ " ~/.miniconda"
37
+ " ~/.miniconda3"
38
+ " ~/.miniforge3"
39
+ " ~/.mambaforge"
40
+ " ~/anaconda3"
41
+ " ~/miniconda3"
42
+ " ~/miniforge3"
43
+ " ~/mambaforge"
44
+ " ~/opt/miniconda3"
45
+ " /opt/miniconda3"
46
+ " /usr/bin/anaconda3"
47
+ " /usr/local/anaconda3"
48
+ " /usr/local/miniconda3"
49
+ " /usr/local/Caskroom/miniconda/base"
50
+ " ~/.conda" )
35
51
" Location of possible candidates for conda environment directory."
36
52
:type '(list string)
37
53
:group 'conda )
38
54
39
55
; ; TODO: find some way to replace this with `(alist-get 'root_prefix (conda--get-config))`
40
56
; ; unfortunately right now (conda--get-executable-path) relies on this!
41
57
(defcustom conda-anaconda-home
42
- (expand-file-name ( or (getenv " ANACONDA_HOME" )
43
- ( catch 'conda-catched-home
44
- ( dolist (candidate conda-home-candidates )
45
- ( when (f-dir ? (expand-file-name candidate ))
46
- ( throw 'conda-catched-home candidate)))) ))
58
+ (or ( cl-loop for dir in ( cons (getenv " ANACONDA_HOME" ) conda-home-candidates )
59
+ if ( and dir ( file-directory-p dir))
60
+ return ( setq conda-anaconda- home ( expand-file-name dir )
61
+ conda-env-home-directory (expand-file-name dir) ))
62
+ ( message " Cannot find Anaconda installation " ))
47
63
" Location of your conda installation.
48
64
49
65
Iterate over default locations in CONDA-HOME-CANDIDATES, or read from the
@@ -686,3 +702,4 @@ buffer."
686
702
(provide 'conda )
687
703
688
704
; ;; conda.el ends here
705
+
You can’t perform that action at this time.
0 commit comments