aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2013-01-28 18:59:42 -0300
committerFabián Ezequiel Gallina2013-01-28 18:59:42 -0300
commite44970863d763264189e7ab98d6991a38dc95dc9 (patch)
tree84415cc8bc386c971b73722dace5eedfa3c03812 /lisp/progmodes/python.el
parent268c041e440dacf5f897149d6be9edfaa40d86ed (diff)
downloademacs-e44970863d763264189e7ab98d6991a38dc95dc9.tar.gz
emacs-e44970863d763264189e7ab98d6991a38dc95dc9.zip
* progmodes/python.el (python-shell-parse-command): Find
python-shell-interpreter with modified environment.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 5 insertions, 1 deletions
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."
1654 1654
1655(defun python-shell-parse-command () 1655(defun python-shell-parse-command ()
1656 "Calculate the string used to execute the inferior Python process." 1656 "Calculate the string used to execute the inferior Python process."
1657 (format "%s %s" python-shell-interpreter python-shell-interpreter-args)) 1657 (let ((process-environment (python-shell-calculate-process-environment))
1658 (exec-path (python-shell-calculate-exec-path)))
1659 (format "%s %s"
1660 (executable-find python-shell-interpreter)
1661 python-shell-interpreter-args)))
1658 1662
1659(defun python-shell-calculate-process-environment () 1663(defun python-shell-calculate-process-environment ()
1660 "Calculate process environment given `python-shell-virtualenv-path'." 1664 "Calculate process environment given `python-shell-virtualenv-path'."