python-shell-send-file

python-shell-send-file is an interactive compiled Lisp function in `python.el'.


(python-shell-send-file FILE-NAME &optional PROCESS TEMP-FILE-NAME DELETE)

Send FILE-NAME to inferior Python PROCESS.
If TEMP-FILE-NAME is passed then that file is used for processing
instead, while internally the shell will continue to use
FILE-NAME. If TEMP-FILE-NAME and DELETE are non-nil, then
TEMP-FILE-NAME is deleted after evaluation is performed.