1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 11:33:09 -08:00

Default python-shell-interpreter to python3

* lisp/progmodes/python.el (python-shell-interpreter): Default to
python3 (bug#45655).
This commit is contained in:
Glenn Morris 2021-01-10 15:48:57 +01:00 committed by Lars Ingebrigtsen
parent 6858b74763
commit fa686f0998
2 changed files with 7 additions and 1 deletions

View file

@ -2027,8 +2027,12 @@ position, else returns nil."
:group 'python
:safe 'stringp)
(defcustom python-shell-interpreter "python"
(defcustom python-shell-interpreter
(cond ((executable-find "python3") "python3")
((executable-find "python") "python")
(t "python3"))
"Default Python interpreter for shell."
:version "28.1"
:type 'string
:group 'python)