Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import os
- from unpyc3 import decompile
- files = os.listdir()
- for f in files:
- if f.endswith('.pyo'):
- #try:
- d = open(f + '.py', 'w')
- output = str(decompile(f))
- d.write(output)
- d.close()
- #except:
- #print('could not decompile')
- print('decompile finised')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement