Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import gzip
- destination = '/home/test/1.txt.gz'
- f_in = gzip.open(destination, 'rb')
- destination1 = destination.replace('.gz','')
- f_out = open(destination1,"wb")
- shutil.copyfileobj(f_in, f_out)
Add Comment
Please, Sign In to add comment