
                             d Z ddlZd Zy)z"Custom locater for CA_CERTS files.    Nc                  ,   dx} }	 t         j                  |       }|S # t        t        t        f$ rb t
        j                  j                  t
        j                  j                  t
        j                  j                  t                    |      }Y |S w xY w)aL  Locate the ca_certs.txt file.

  The httplib2 library will look for local ca_certs_locater module to override
  the default location for the ca_certs.txt file. We override it here to first
  try loading via resources, falling back to the traditional method if
  that fails.

  Returns:
    The file location returned as a string.
  zcacerts.txt)	resourcesGetResourceFilenameIOErrorAttributeError	NameErrorospathjoindirnameabspath__file__)	file_pathfile_base_nameca_certss      <platform/bq/third_party/httplib2/python3/ca_certs_locater.pygetr      s|      -,)nD,,Y7H 
/ >9	- Dww||
12NDH	/Ds    A2BB)__doc__r	   r        r   <module>r      s    ( 	r   