mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
Prefer python3 for python-interpreter
* lisp/progmodes/python.el (python-interpreter): Prefer "python3" when it exists, to be consistent with python-shell-interpreter.
This commit is contained in:
parent
e776903b31
commit
7f0a252f21
@ -312,14 +312,17 @@
|
||||
:version "24.3"
|
||||
:link '(emacs-commentary-link "python"))
|
||||
|
||||
(defcustom python-interpreter "python"
|
||||
(defcustom python-interpreter
|
||||
(cond ((executable-find "python3") "python3")
|
||||
((executable-find "python") "python")
|
||||
(t "python3"))
|
||||
"Python interpreter for noninteractive use.
|
||||
Some Python interpreters also require changes to
|
||||
`python-interpreter-args'.
|
||||
|
||||
To customize the Python interpreter for interactive use, modify
|
||||
`python-shell-interpreter' instead."
|
||||
:version "29.1"
|
||||
:version "30.1"
|
||||
:type 'string)
|
||||
|
||||
(defcustom python-interpreter-args ""
|
||||
|
Loading…
Reference in New Issue
Block a user