diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 6 |
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'." |