Ë
    €ÏJ  ã                   ó8   — d Z dZddlZddlZd„ Zd„ Zd„ Zdad„ Zy)	zëWrapper around setuptools' pkg_resources with more Google-like names.

This module is not very useful on its own, but many Google open-source projects
are used to a different naming scheme, and this module makes the transition
easier.
z$dborowitz@google.com (Dave Borowitz)é    Nc                 ó>   — |j                  dd«      \  }} | ||«      S )aÊ  Call a pkg_resources function.

  Args:
    func: A function from pkg_resources that takes the arguments
          (package_or_requirement, resource_name); for more info,
          see http://peak.telecommunity.com/DevCenter/PkgResources
    name: A name of the form 'module.name:path/to/resource'; this should
          generally be built from __name__ in the calling module.

  Returns:
    The result of calling the function on the split resource name.
  Ú:é   )Úsplit)ÚfuncÚnameÚpkg_nameÚresource_names       ú4platform/bq/third_party/google/apputils/resources.pyÚ_Callr      s&   € ð !ŸJ™J s¨AÓ.Ñ€(ˆMÙ	ˆh˜Ó	&Ð&ó    c                 ó6   — t        t        j                  | «      S )z&Get a resource as a string; see _Call.)r   Úpkg_resourcesÚresource_string©r   s    r   ÚGetResourcer   /   ó   € ä	Œ}×,Ñ,¨dÓ	3Ð3r   c                 ó6   — t        t        j                  | «      S )z0Get a resource as a file-like object; see _Call.)r   r   Úresource_streamr   s    r   ÚGetResourceAsFiler   4   r   r   Fc                 óŒ   — t         s%t        j                  t        j                  «       da t        t        j                  | «      S )z)Get a filename for a resource; see _Call.T)Ú_extracted_filesÚatexitÚregisterr   Úcleanup_resourcesr   Úresource_filenamer   s    r   ÚGetResourceFilenamer   <   s2   € õ 
Ü
‡OO”M×3Ñ3Ô4ØÐä	Œ}×.Ñ.°Ó	5Ð5r   )	Ú__doc__Ú
__author__r   r   r   r   r   r   r   © r   r   Ú<module>r!      s3   ðñ ð 4€
ã ã ò'ò"4ò
4ð
 Ð ó6r   