python (3.11.7)
       1  #!/usr/bin/env python
       2  
       3  """
       4  requests.certs
       5  ~~~~~~~~~~~~~~
       6  
       7  This module returns the preferred default CA certificate bundle. There is
       8  only one — the one from the certifi package.
       9  
      10  If you are packaging Requests, e.g., for a Linux distribution or a managed
      11  environment, you can change the definition of where() to return a separately
      12  packaged CA bundle.
      13  """
      14  
      15  import os
      16  
      17  if "_PIP_STANDALONE_CERT" not in os.environ:
      18      from pip._vendor.certifi import where
      19  else:
      20      def where():
      21          return os.environ["_PIP_STANDALONE_CERT"]
      22  
      23  if __name__ == "__main__":
      24      print(where())