diff options
author | Augusto Stoffel <arstoffel@gmail.com> | 2022-08-13 17:04:17 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-08-19 14:59:27 +0200 |
commit | ec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9 (patch) | |
tree | 863fefeb91e1787ce8f6a664726d9c5e07598204 /lisp/progmodes/python.el | |
parent | 6fca17270a6c8be6f561e8048eebe375b362f311 (diff) | |
download | emacs-ec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9.tar.gz emacs-ec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9.tar.bz2 emacs-ec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9.zip |
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)
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r-- | lisp/progmodes/python.el | 9 |
1 files changed, 5 insertions, 4 deletions
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*" |