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:
parent
6fca17270a
commit
ec347aec0f
1 changed files with 5 additions and 4 deletions
|
@ -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*"
|
||||
|
|
Loading…
Add table
Reference in a new issue