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)
;;; 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*"