Skip to content

Commit

Permalink
python-check-command: Don't use absolute file names
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
astoff authored and skangas committed Aug 19, 2022
1 parent 6fca172 commit ec347ae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lisp/progmodes/python.el
Original file line number Diff line number Diff line change
Expand Up @@ -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*"
Expand Down

0 comments on commit ec347ae

Please sign in to comment.