Trim output from pyenv command

Trailing newlines will cause errors
This commit is contained in:
Eivind Fonn 2017-05-28 14:59:34 +02:00
parent bf41e9e300
commit 97862af26c

View file

@ -22,7 +22,7 @@
(progn
(let ((pyenv-string (shell-command-to-string (concat "pyenv which " command))))
(unless (string-match "not found" pyenv-string)
pyenv-string)))
(string-trim pyenv-string))))
(executable-find command)))
(defun spacemacs/python-setup-shell (&rest args)