python.el: Support interpreter paths with spaces

Fixes: debbugs:19289

* lisp/progmodes/python.el (python-shell-parse-command): Quote
`python-shell-interpreter`.
This commit is contained in:
Fabián Ezequiel Gallina 2014-12-08 22:32:53 -03:00
parent d83f329909
commit c2db939359
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-12-09 Fabián Ezequiel Gallina <fgallina@gnu.org>
* progmodes/python.el (python-shell-parse-command): Quote
`python-shell-interpreter`. (Bug#19289)
2014-12-04 Stefan Monnier <monnier@iro.umontreal.ca> 2014-12-04 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning * progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning

View file

@ -2086,7 +2086,8 @@ uniqueness for different types of configurations."
(exec-path (python-shell-calculate-exec-path))) (exec-path (python-shell-calculate-exec-path)))
(format "%s %s" (format "%s %s"
;; FIXME: Why executable-find? ;; FIXME: Why executable-find?
(executable-find python-shell-interpreter) (shell-quote-argument
(executable-find python-shell-interpreter))
python-shell-interpreter-args))) python-shell-interpreter-args)))
(defun python-shell-calculate-process-environment () (defun python-shell-calculate-process-environment ()