¡@

Home 

python Programming Glossary: dest_path

How to simulate ZipFile.open in Python 2.5?

http://stackoverflow.com/questions/3781261/how-to-simulate-zipfile-open-in-python-2-5

import shutil import zipfile def extract_from_zip name dest_path zip_file Similar to zipfile.ZipFile.extract but extracts the.. from the zip_file instance of zipfile.ZipFile to the given dest_path ignoring the filename path given in the archive completely instead.. instead of preserving it as extract does. dest_file open dest_path 'wb' archived_file zip_file.open name shutil.copyfileobj archived_file..