[code.view]

[top] / python / PyMOTW / sys / sys_path_importer_cache.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2009 Doug Hellmann All rights reserved.
     #
     """
     """
     #end_pymotw_header
     
     import sys
     import pprint
     
     print 'PATH:',
     pprint.pprint(sys.path)
     print
     print 'IMPORTERS:'
     for name, cache_value in sys.path_importer_cache.items():
         name = name.replace(sys.prefix, '...')
         print '%s: %r' % (name, cache_value)
     

[top] / python / PyMOTW / sys / sys_path_importer_cache.py

contact | logmethods.com