start a python script with input redirection in emacs

Leo leo.broska at
Mon Jul 14 13:55:00 CEST 2003

hi all

i use python-mode in emacs and want to start a script which gets data from
the standard input via "input".

this script works fine from the command line but in emacs via
py-execute-buffer i get always an python execution error.

additionally i want to start the script with input redirection from a file
which as well works fine via command line,but i have no idea how to tell
emacs to execute the file with input redirection.

thanks for any help,


More information about the Python-list mailing list