diff options
| author | Augusto Stoffel | 2022-08-13 17:04:17 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-08-19 14:59:27 +0200 |
| commit | ec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9 (patch) | |
| tree | 863fefeb91e1787ce8f6a664726d9c5e07598204 | |
| parent | 6fca17270a6c8be6f561e8048eebe375b362f311 (diff) | |
| download | emacs-ec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9.tar.gz 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)
| -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): | |||
| 4724 | ;;; Code check | 4724 | ;;; Code check |
| 4725 | 4725 | ||
| 4726 | (defcustom python-check-command | 4726 | (defcustom python-check-command |
| 4727 | (or (executable-find "pyflakes") | 4727 | (cond ((executable-find "pyflakes") "pyflakes") |
| 4728 | (executable-find "epylint") | 4728 | ((executable-find "epylint") "epylint") |
| 4729 | "install pyflakes, pylint or something else") | 4729 | (t "pyflakes")) |
| 4730 | "Command used to check a Python file." | 4730 | "Command used to check a Python file." |
| 4731 | :type 'string) | 4731 | :type 'string |
| 4732 | :version "29.1") | ||
| 4732 | 4733 | ||
| 4733 | (defcustom python-check-buffer-name | 4734 | (defcustom python-check-buffer-name |
| 4734 | "*Python check: %s*" | 4735 | "*Python check: %s*" |