home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1712 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  578 b   |  16 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __docformat__ = 'restructuredtext en'
  5. import os
  6. import sys
  7.  
  8. def import_item(key):
  9.     package = '.'.join(key.split('.')[0:-1])
  10.     obj = key.split('.')[-1]
  11.     execString = 'from %s import %s' % (package, obj)
  12.     exec execString
  13.     exec 'temp = %s' % obj
  14.     return temp
  15.  
  16.