Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #
- # Copyright 2007 Doug Hellmann.
- #
- """Retrieving the code for a module within a zip archive.
- """
- #end_pymotw_header
- import zipimport
- importer = zipimport.zipimporter('zipimport_example.zip')
- code = importer.get_code('zipimport_get_code')
- print code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement