Function: python-ffap-module-path
python-ffap-module-path is a byte-compiled function defined in
python.el.gz.
Signature
(python-ffap-module-path MODULE)
Documentation
Function for ffap-alist to return path for MODULE.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-ffap-module-path (module)
"Function for `ffap-alist' to return path for MODULE."
(when-let ((process (python-shell-get-process))
(ready (python-shell-with-shell-buffer
(python-util-comint-end-of-output-p)))
(module-file
(python-shell-send-string-no-output
(format "%s\nprint(__FFAP_get_module_path(%s))"
python-ffap-setup-code
(python-shell--encode-string module)))))
(unless (string-empty-p module-file)
(python-util-strip-string module-file))))