]> git.eshelyaron.com Git - emacs.git/commitdiff
python.el: Support interpreter paths with spaces
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Tue, 9 Dec 2014 01:32:53 +0000 (22:32 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Tue, 9 Dec 2014 01:32:53 +0000 (22:32 -0300)
Fixes: debbugs:19289
* lisp/progmodes/python.el (python-shell-parse-command): Quote
`python-shell-interpreter`.

lisp/ChangeLog
lisp/progmodes/python.el

index 26b09a68d02fd4d779ffc000316a10ab2490dcbc..d946a2eb5862bb8dbc7c39105624fc3ed02d5b30 100644 (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>
 
        * progmodes/sh-script.el (sh-smie-sh-rules): Go back to the beginning
index 521f0b5be198ea69e2c91eec3b1ef219ecaaa6b5..357ca5b56d8306802981c806aa4fa7e13d33a844 100644 (file)
@@ -2086,7 +2086,8 @@ uniqueness for different types of configurations."
         (exec-path (python-shell-calculate-exec-path)))
     (format "%s %s"
             ;; FIXME: Why executable-find?
-            (executable-find python-shell-interpreter)
+            (shell-quote-argument
+             (executable-find python-shell-interpreter))
             python-shell-interpreter-args)))
 
 (defun python-shell-calculate-process-environment ()