Re: Using NamedTemporaryDir instead of multiple NamedTemporaryFiles

2008-09-09 Thread Gabriel Genellina
En Tue, 09 Sep 2008 15:49:32 -0300, Michael Hoffman <[EMAIL PROTECTED]> escribió: I've written a NamedTemporaryDir class which is derived somewhat from tempfile.NamedTemporaryFile in the standard library. Right now I am using NamedTemporaryFile to create individual files, but since I am p

Re: Using NamedTemporaryDir instead of multiple NamedTemporaryFiles

2008-09-09 Thread Michael Hoffman
Michael Hoffman wrote: unlink = os.unlink Actually, I need to use shutil.rmtree instead, but you get the idea. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using NamedTemporaryDir instead of multiple NamedTemporaryFiles

2008-09-09 Thread Michael Hoffman
Please accept my apologies if this message was posted several times. My newsreader claimed that a timeout error kept the message from being posted, but I think it got through. -- http://mail.python.org/mailman/listinfo/python-list

Using NamedTemporaryDir instead of multiple NamedTemporaryFiles

2008-09-09 Thread Michael Hoffman
I am writing a library that creates temporary files and calls a series of external programs to process these files. Sometimes these external programs create files in the same directory as the input files, so to make sure they are all deleted, one must create them in a temporary directory, then