Re: About zipfile on WinXP

2006-01-04 Thread Justin Ezequiel
here's a small script I wrote and use note the line arcname = os.path.splitdrive(p)[-1].lstrip(os.sep) if I comment out `.lstrip(os.sep)`, I get a zip file like rzed describes ### import sys import zipfile import time import os if __name__ == '__main__': pths = sy

Re: About zipfile on WinXP

2006-01-02 Thread Kent Johnson
rzed wrote: > I create a zip file on my WinXP system, using this function: > > > import zipfile > import os > import os.path > > def zipdir(dirname, zfname): > zf = zipfile.ZipFile(zfname, 'w', zipfile.ZIP_DEFLATED) > for root, dirs, files in os.walk(dirname): > for f in files: >

Re: About zipfile on WinXP

2006-01-02 Thread Scott David Daniels
rzed wrote: > I create a zip file on my WinXP system, using this function: > ... > However, WinXP has a "feature" (if that's what it is): if you click > on a zip file in explorer, an explorer window opens that shows the > contents of the zip file. If I use WinZip or UltimateZip to create > the

About zipfile on WinXP

2006-01-02 Thread rzed
I create a zip file on my WinXP system, using this function: import zipfile import os import os.path def zipdir(dirname, zfname): zf = zipfile.ZipFile(zfname, 'w', zipfile.ZIP_DEFLATED) for root, dirs, files in os.walk(dirname): for f in files: fullname = os.path.join