Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import lzma
- def extract():
- with lzma.LZMAFile("ffmpeg.xz", "rb") as c:
- with open("ffmpeg2.exe", "wb") as r:
- r.write(c.read())
- def compress():
- with open("ffmpeg.exe", "rb") as r:
- with lzma.LZMAFile("ffmpeg.xz", "wb") as c:
- c.write(r.read())
- #compress();
- extract();
Add Comment
Please, Sign In to add comment