1
0
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:
Stefan Kangas 2024-09-26 17:11:56 +02:00
parent e776903b31
commit 7f0a252f21

View File

@ -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 ""