Since my office blocked my admin privileges to install multiple software. By this Friday I did not get any support from the Desktop team to install the 7zip software and its urgent work.
Suddenly I got an idea, "Why can't use my Python"? he he he......... Installed on my PC!
So, immediately enter into StackOverflow, searched "how to unzip using python" and got the precious codes that I pasted below.
Yup ! finally unzipped the P1r@ted study document, and kept it inside my "STUDY MATERIAL" folder as a hidden file.
# importing the "compressed file" module
import tarfile
# open file
file = tarfile.open('studymaterial.tar')
# uncompress file
file.extractall('./folderpath')
file.close()
Comments
Post a Comment