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)
This commit is contained in:
Augusto Stoffel 2022-08-13 17:04:17 +02:00 committed by Stefan Kangas
parent 6fca17270a
commit ec347aec0f

View file

@ -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*"