ó
    €ÏJ  ã                   ó8   • S r SrSSKrSSKrS rS rS rSqS rg)	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                 ó:   • UR                  SS5      u  p#U " X#5      $ )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Ó.Ñ€(Ù	ˆhÓ	&Ð&ó    c                 ó6   • [        [        R                  U 5      $ )z&Get a resource as a string; see _Call.)r   Úpkg_resourcesÚresource_string©r   s    r   ÚGetResourcer   /   ó   € ä	Œ}×,Ñ,¨dÓ	3Ð3r   c                 ó6   • [        [        R                  U 5      $ )z0Get a resource as a file-like object; see _Call.)r   r   Úresource_streamr   s    r   ÚGetResourceAsFiler   4   r   r   Fc                 ó˜   • [         (       d&  [        R                  " [        R                  5        Sq [        [        R                  U 5      $ )z)Get a filename for a resource; see _Call.T)Ú_extracted_filesÚatexitÚregisterr   Úcleanup_resourcesr   Úresource_filenamer   s    r   ÚGetResourceFilenamer   <   s5   € ÷ 
Ò	Ü
‡O‚O”M×3Ñ3Ô4ØÐä	Œ}×.Ñ.°Ó	5Ð5r   )	Ú__doc__Ú
__author__r   r   r   r   r   r   r   © r   r   Ú<module>r!      s3   ðñ ð 4€
ã ã ò'ò"4ò
4ð
 Ð ó6r   