emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ec347aec0f 1/3: python-check-command: Don't use absolute file nam


From: Stefan Kangas
Subject: master ec347aec0f 1/3: python-check-command: Don't use absolute file names
Date: Fri, 19 Aug 2022 09:09:48 -0400 (EDT)

branch: master
commit ec347aec0fc7d2d3e6603b6694d9978cb9fcb9e9
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    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)
---
 lisp/progmodes/python.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 9a2d17abb4..285a57348e 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*"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]