pkzip and using popen on Windows 98 ???

Holger Jannsen holger at phoenix-edv.netzservice.de
Fri Jun 25 11:35:51 CEST 1999


High Mark!

Mark Butterworth - U-Net schrieb:
> 
> Im having trouble using os.system or popen (both win32pipe & os) under
> windows 98.  It will not return the exit value of the command Im running
> (which is infozips - zip).  Also when attempting to use win32pipe.popen3 -
> my pipe read's hang after one or two reads.
> 
> Also does anyone know of any python modules which can read / write pkzip (or
> infozip) format files as I don't like calling external commands.
> 
> Any help would be appreciated?

Tested module GZIP?

f = gzip.GzipFile(fromPath , 'rb')
var = f.read()
f.close()
writeFile(toPath, var)

..works fine for unzipping file.




More information about the Python-list mailing list