From fbf4f78e8ed1163335d4508a9bb56de0225317d8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 21 May 2019 17:16:40 -0400 Subject: [PATCH] Fix +python-executable-find with absolute paths --- modules/lang/python/autoload/python.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/python/autoload/python.el b/modules/lang/python/autoload/python.el index 84fcbcecd..26abd74b4 100644 --- a/modules/lang/python/autoload/python.el +++ b/modules/lang/python/autoload/python.el @@ -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)))