Function: python-shell-tramp-refresh-remote-path
python-shell-tramp-refresh-remote-path is a byte-compiled function
defined in python.el.gz.
Signature
(python-shell-tramp-refresh-remote-path VEC PATHS)
Documentation
Update VEC's remote-path giving PATHS priority.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-shell-tramp-refresh-remote-path (vec paths)
"Update VEC's remote-path giving PATHS priority."
(cl-assert (featurep 'tramp))
(declare-function tramp-set-remote-path "tramp-sh")
(declare-function tramp-set-connection-property "tramp-cache")
(declare-function tramp-get-connection-property "tramp-cache")
(let ((remote-path (tramp-get-connection-property vec "remote-path" nil)))
(when remote-path
;; FIXME: This part of the Tramp code still knows about Python!
(python-shell--add-to-path-with-priority remote-path paths)
(tramp-set-connection-property vec "remote-path" remote-path)
(tramp-set-remote-path vec))))