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 2f353feb323..a1322239b35 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1664,7 +1664,11 @@ uniqueness for different types of configurations." | |||
| 1664 | 1664 | ||
| 1665 | (defun python-shell-parse-command () | 1665 | (defun python-shell-parse-command () |
| 1666 | "Calculate the string used to execute the inferior Python process." | 1666 | "Calculate the string used to execute the inferior Python process." |
| 1667 | (format "%s %s" python-shell-interpreter python-shell-interpreter-args)) | 1667 | (let ((process-environment (python-shell-calculate-process-environment)) |
| 1668 | (exec-path (python-shell-calculate-exec-path))) | ||
| 1669 | (format "%s %s" | ||
| 1670 | (executable-find python-shell-interpreter) | ||
| 1671 | python-shell-interpreter-args))) | ||
| 1668 | 1672 | ||
| 1669 | (defun python-shell-calculate-process-environment () | 1673 | (defun python-shell-calculate-process-environment () |
| 1670 | "Calculate process environment given `python-shell-virtualenv-path'." | 1674 | "Calculate process environment given `python-shell-virtualenv-path'." |