From c68623c2da14ae436276c84ae3705f1708e2bd92 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sat, 13 Aug 2022 17:04:17 +0200 Subject: [PATCH 1/4] python-check-command: don't use absolute executable names This is incompatible with Tramp and packages that switch between virtualenvs. * lisp/progmodes/python.el (python-check-command): don't use absolute executable names. --- lisp/progmodes/python.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 96f9d14832..3176d12bd1 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -4702,9 +4702,9 @@ ffap-alist ;;; Code check (defcustom python-check-command - (or (executable-find "pyflakes") - (executable-find "epylint") - "install pyflakes, pylint or something else") + (cond ((executable-find "pyflakes") "pyflakes") + ((executable-find "epylint") "epylint") + (t "pyflakes")) "Command used to check a Python file." :type 'string) -- 2.37.1