On Thu, 09 Dec 2004 07:42:57 -0800, Scott David Daniels
<[EMAIL PROTECTED]> wrote:

>Look into the two-argument form of the write command:

Well, I should have guessed that, it works. Thanks!


>     import zipfile
>     archive = zipfile.ZipFile('box.zip', 'w', zipfile.ZIP_DEFLATED)
>     archive.write('source/somewhere/one.txt', 'name.txt')
>     archive.write('two.txt', 'another.txt')
>     archive.close()
>
>--Scott David Daniels
>[EMAIL PROTECTED]



--
It's a man's life in a Python Programming Association.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to