aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAugusto Stoffel2022-08-13 17:04:17 +0200
committerStefan Kangas2022-08-19 14:59:27 +0200
commitec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9 (patch)
tree863fefeb91e1787ce8f6a664726d9c5e07598204
parent6fca17270a6c8be6f561e8048eebe375b362f311 (diff)
downloademacs-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.el9
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*"