Make python-execute-file use python-shell-interpreter

So that we can customize to use `python3` instead of `python`
This commit is contained in:
Swaroop C H 2017-01-09 07:23:54 -08:00 committed by Eivind Fonn
parent 6dac3425b6
commit ea54e6863e

View file

@ -333,8 +333,10 @@
;; set compile command to buffer-file-name
;; universal argument put compile buffer in comint mode
(let ((universal-argument t)
(compile-command (format "python %s" (file-name-nondirectory
buffer-file-name))))
(compile-command (format "%s %s"
python-shell-interpreter
(file-name-nondirectory
buffer-file-name))))
(if arg
(call-interactively 'compile)
(compile compile-command t)