From: Augusto Stoffel Date: Sat, 13 Aug 2022 15:04:17 +0000 (+0200) Subject: python-check-command: Don't use absolute file names X-Git-Tag: emacs-29.0.90~1447^2~47 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9;p=emacs.git python-check-command: Don't use absolute file names Absolute executable file names are incompatible with Tramp and packages that switch between virtualenvs. * lisp/progmodes/python.el (python-check-command): Don't use absolute file names. (Bug#53913) --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 9a2d17abb4a..285a57348e0 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -4724,11 +4724,12 @@ def __FFAP_get_module_path(objstr): ;;; 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) + :type 'string + :version "29.1") (defcustom python-check-buffer-name "*Python check: %s*"