Trim output from pyenv command
Trailing newlines will cause errors
This commit is contained in:
parent
bf41e9e300
commit
97862af26c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue