Code for unzipping a file
Hi Would you please help me with a python code for unzipping a file *.zip and then save the contents of the file to a directory
Thanks
add a comment
Hi Would you please help me with a python code for unzipping a file *.zip and then save the contents of the file to a directory
Thanks
You can do this by using the zipfile module in python:
import zipfile
zip = zipfile.ZipFile(r'c:\my.zip')
zip.extractall(r'c:\output')
 If I could comment, I would also add that your question seems to be more of a python question than a PSS/E question. You might find answers to such questions more easily at stackoverflow.com.
 
                
                whit loves you.      Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.