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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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