is there a way to get the path of a file inside a zip file? I would like to do something like this:
archive = zipfile.ZipFile('pathToZip/file.zip','r')
files = archive.infolist()
for file in files:
name = file.filename
p1 = subprocess.Popen(["exiftool", "pathToZip/file.zip/"+name], stdout=subprocess.PIPE)
output = p1.communicate()[0]
print output
So the problem is that exiftool command needs a path, but I don't want to extract the zip file! Is there a way to solve this?