home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / plugin_manager / plugin_resources.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  1.1 KB  |  24 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. from pkg_resources import Distribution, EGG_DIST, PY_MAJOR, EntryPoint
  5.  
  6. class PluginDistribution(Distribution):
  7.     
  8.     def __init__(self, location = None, metadata = None, project_name = None, version = None, py_version = PY_MAJOR, platform = None, precedence = EGG_DIST, ep_yaml = None):
  9.         if ep_yaml is None:
  10.             ep_yaml = { }
  11.         
  12.         self._ep_map = { }
  13.         for group, impl in ep_yaml.items():
  14.             i = { }
  15.             for im, loc in impl.items():
  16.                 ep = EntryPoint.parse('%s=%s' % (im, loc), dist = self)
  17.                 i[ep.name] = ep
  18.             
  19.             self._ep_map[group] = i
  20.         
  21.         Distribution.__init__(self, location, metadata, project_name, version, py_version, platform, precedence)
  22.  
  23.  
  24.