In message <Michael.J.Fromberger-8FC07C.15483428082007 at localhost>, Michael J. Fromberger wrote: > ... since os.fdopen() only has access to the file descriptor, it > does not have a convenient way to obtain the file's name. You can do this under Linux as follows: os.readlink("/proc/%d/fd/%d" % (os.getpid(), fileno))