name of tmpfile

Jonathan Soons jsoons at juilliard.edu
Mon Mar 19 12:13:50 EST 2001


I am trying to find out the real name of

t = tempfile.TemporaryFile()

so that I can do

os.system('llp -d CHECKS -ofmt=checks <real_tempfile_name>')   # this is how
I print to a printer

According to the book, os.tmpfile() never gets a real name, so I can't use
that.

And p = tempfile.gettempprefix(t)

is supposed to put a reference to the real name in p. So

how do I pass the real name to os.system()?






More information about the Python-list mailing list