Adding to a zip file
Dennis Hotson
djdennie69 at hotmail.com
Wed Jul 28 06:01:15 EDT 2004
I'm having trouble adding a file to a .zip file using python2.3.
The write method of a ZipFile object needs a filename in
order to add a file to the archive.
The problem is that I want to add a 'file-like' object... ie the 'file'
doesn't have a real filename.
Any suggestions on what I could do? :)
Oh and also, I looked at os.tmpname() to try and create a temporary
file.. but I keep getting warnings about it's security. Does anyone know
how safe it would be to use it?
More information about the Python-list
mailing list