necaris / conda.el

Emacs helper library (and minor mode) to work with conda environments
MIT License
153 stars 49 forks source link

Quote Conda command #150

Closed chinnu043 closed 8 months ago

chinnu043 commented 10 months ago

https://github.com/doomemacs/doomemacs/issues/6658 This is the similar that I'm facing , Here is the fix for this.

On my system conda--get-executable-path retruns: "c:/Users/Anudeep Kumar/miniconda3/Scripts/conda.exe"

The problem with the previous code is that doesn't work for the username that contains space in it. The fix is to simply add double-quotes around that path before trying to run the version command.

Thanks to @tdhock for helping me find the solution.