Fix +python-executable-find with absolute paths

This commit is contained in:
Henrik Lissner
2019-05-21 17:16:40 -04:00
parent e96205ed9f
commit fbf4f78e8e

View File

@ -40,7 +40,8 @@
(defun +python-executable-find (exe)
"TODO"
(if (file-name-absolute-p exe)
(file-executable-p exe)
(and (file-executable-p exe)
exe)
(let ((exe-root (format "bin/%s" exe)))
(cond ((when python-shell-virtualenv-root
(let ((bin (expand-file-name exe-root python-shell-virtualenv-root)))