From e44970863d763264189e7ab98d6991a38dc95dc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Mon, 28 Jan 2013 18:59:42 -0300 Subject: [PATCH] * progmodes/python.el (python-shell-parse-command): Find python-shell-interpreter with modified environment. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/python.el | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fa4a85c1ca7..26ad7ec799a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-01-28 Fabián Ezequiel Gallina + + * progmodes/python.el (python-shell-parse-command): Find + python-shell-interpreter with modified environment. + 2013-01-26 Stefan Monnier * emacs-lisp/cl.el (cl-set-getf): Add compatibility alias. diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index c321714e2f1..71c5ba57fa0 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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'." -- 2.11.4.GIT