diff options
| author | Glenn Morris | 2021-01-10 15:48:57 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-01-10 15:48:57 +0100 |
| commit | fa686f099800aac22dcdc39fb84ee2dcca8ffbf4 (patch) | |
| tree | 62205e2c5bdf03c8e9cde73921d9b4556d229ec6 /lisp/progmodes/python.el | |
| parent | 6858b74763cd784e4594b329633ac39c599c686d (diff) | |
| download | emacs-fa686f099800aac22dcdc39fb84ee2dcca8ffbf4.tar.gz emacs-fa686f099800aac22dcdc39fb84ee2dcca8ffbf4.zip | |
Default python-shell-interpreter to python3
* lisp/progmodes/python.el (python-shell-interpreter): Default to
python3 (bug#45655).
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 0965fecfb74..d6c0a4d1dbf 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2027,8 +2027,12 @@ position, else returns nil." | |||
| 2027 | :group 'python | 2027 | :group 'python |
| 2028 | :safe 'stringp) | 2028 | :safe 'stringp) |
| 2029 | 2029 | ||
| 2030 | (defcustom python-shell-interpreter "python" | 2030 | (defcustom python-shell-interpreter |
| 2031 | (cond ((executable-find "python3") "python3") | ||
| 2032 | ((executable-find "python") "python") | ||
| 2033 | (t "python3")) | ||
| 2031 | "Default Python interpreter for shell." | 2034 | "Default Python interpreter for shell." |
| 2035 | :version "28.1" | ||
| 2032 | :type 'string | 2036 | :type 'string |
| 2033 | :group 'python) | 2037 | :group 'python) |
| 2034 | 2038 | ||