summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorAugusto Stoffel <arstoffel@gmail.com>2022-08-13 17:04:17 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-08-19 14:59:27 +0200
commitec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9 (patch)
tree863fefeb91e1787ce8f6a664726d9c5e07598204 /lisp/progmodes/python.el
parent6fca17270a6c8be6f561e8048eebe375b362f311 (diff)
downloademacs-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.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):
;;; 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*"