]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/python.el (python-shell-parse-command): Find
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 28 Jan 2013 21:59:42 +0000 (18:59 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 28 Jan 2013 21:59:42 +0000 (18:59 -0300)
python-shell-interpreter with modified environment.

lisp/ChangeLog
lisp/progmodes/python.el

index fa4a85c1ca716e441116466061f9a19d088bd8fc..26ad7ec799a22a2ae582beb02ec8e7863374fed9 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-28  Fabián Ezequiel Gallina  <fgallina@cuca>
+
+       * progmodes/python.el (python-shell-parse-command): Find
+       python-shell-interpreter with modified environment.
+
 2013-01-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/cl.el (cl-set-getf): Add compatibility alias.
index c321714e2f1cd87a52214cab788b8e76e3fbb15d..71c5ba57fa09a0f51c0e64a10f85699636975c46 100644 (file)
@@ -1654,7 +1654,11 @@ uniqueness for different types of configurations."
 
 (defun python-shell-parse-command ()
   "Calculate the string used to execute the inferior Python process."
-  (format "%s %s" python-shell-interpreter python-shell-interpreter-args))
+  (let ((process-environment (python-shell-calculate-process-environment))
+        (exec-path (python-shell-calculate-exec-path)))
+    (format "%s %s"
+            (executable-find python-shell-interpreter)
+            python-shell-interpreter-args)))
 
 (defun python-shell-calculate-process-environment ()
   "Calculate process environment given `python-shell-virtualenv-path'."