Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/usr/bin/env python
  2. #
  3. # Copyright 2007 Doug Hellmann.
  4. #
  5.  
  6. """Retrieving the code for a module within a zip archive.
  7. """
  8. #end_pymotw_header
  9.  
  10. import zipimport
  11.  
  12. importer = zipimport.zipimporter('zipimport_example.zip')
  13. code = importer.get_code('zipimport_get_code')
  14. print code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement