aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2014-12-08 22:32:53 -0300
committerFabián Ezequiel Gallina2014-12-08 22:32:53 -0300
commitc2db9393595559ccddcccbb8d1a85e1167867714 (patch)
tree53fb3cef4c6e6a06da39e139c06dd5ecd9a6a54b /lisp/progmodes/python.el
parentd83f3299095c52ffb5bb01e30c41c6e1077dee81 (diff)
downloademacs-c2db9393595559ccddcccbb8d1a85e1167867714.tar.gz
emacs-c2db9393595559ccddcccbb8d1a85e1167867714.zip
python.el: Support interpreter paths with spaces
Fixes: debbugs:19289 * lisp/progmodes/python.el (python-shell-parse-command): Quote `python-shell-interpreter`.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 521f0b5be19..357ca5b56d8 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2086,7 +2086,8 @@ uniqueness for different types of configurations."
2086 (exec-path (python-shell-calculate-exec-path))) 2086 (exec-path (python-shell-calculate-exec-path)))
2087 (format "%s %s" 2087 (format "%s %s"
2088 ;; FIXME: Why executable-find? 2088 ;; FIXME: Why executable-find?
2089 (executable-find python-shell-interpreter) 2089 (shell-quote-argument
2090 (executable-find python-shell-interpreter))
2090 python-shell-interpreter-args))) 2091 python-shell-interpreter-args)))
2091 2092
2092(defun python-shell-calculate-process-environment () 2093(defun python-shell-calculate-process-environment ()