diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 227be64b5b0..a50446343a0 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -3030,11 +3030,11 @@ machine then modifies `tramp-remote-process-environment' and | |||
| 3030 | (tramp-dissect-file-name default-directory 'noexpand))))) | 3030 | (tramp-dissect-file-name default-directory 'noexpand))))) |
| 3031 | (if vec | 3031 | (if vec |
| 3032 | (python-shell--tramp-with-environment vec extraenv bodyfun) | 3032 | (python-shell--tramp-with-environment vec extraenv bodyfun) |
| 3033 | (let ((process-environment | 3033 | (cl-letf (((default-value 'process-environment) |
| 3034 | (append extraenv process-environment)) | 3034 | (append extraenv process-environment)) |
| 3035 | (exec-path | 3035 | ((default-value 'exec-path) |
| 3036 | ;; FIXME: This is still Python-specific. | 3036 | ;; FIXME: This is still Python-specific. |
| 3037 | (python-shell-calculate-exec-path))) | 3037 | (python-shell-calculate-exec-path))) |
| 3038 | (funcall bodyfun))))) | 3038 | (funcall bodyfun))))) |
| 3039 | 3039 | ||
| 3040 | (defun python-shell--tramp-with-environment (vec extraenv bodyfun) | 3040 | (defun python-shell--tramp-with-environment (vec extraenv bodyfun) |