
     h                     d    d Z ddlZddlmZ ddlZddlmZ ddlmZm	Z	 d	dee
z  ez  dz  ddfdZy)
z0
Module for managing the PROJ network settings.
    N)Path)_set_context_ca_bundle_path)is_network_enabledset_network_enabledca_bundle_pathreturnc                     d}| du rd} nOt        | t        t        f      rt        |       } n-| du st        d |D              st	        j
                         } nd} t        |        y)a!  
    .. versionadded:: 3.0.0

    Sets the path to the CA Bundle used by the `curl`
    built into PROJ when PROJ network is enabled.

    See: :c:func:`proj_context_set_ca_bundle_path`

    Environment variables:

    - PROJ_CURL_CA_BUNDLE
    - CURL_CA_BUNDLE
    - SSL_CERT_FILE

    Parameters
    ----------
    ca_bundle_path: Path | str | bool | None, optional
        Default is None, which only uses the `certifi` package path as a fallback if
        the environment variables are not set. If a path is passed in, then
        that will be the path used. If it is set to True, then it will default
        to using the path provided, by the `certifi` package. If it is set to False
        or an empty string then it will default to the system settings or environment
        variables.
    )PROJ_CURL_CA_BUNDLECURL_CA_BUNDLESSL_CERT_FILEF Tc              3   @   K   | ]  }|t         j                  v   y wN)osenviron).0env_var_names     j/home/developers/rajanand/mypropertyqr-fmb-refixing-v2/venv/lib/python3.12/site-packages/pyproj/network.py	<genexpr>z%set_ca_bundle_path.<locals>.<genexpr>2   s      -'3

"-s   N)
isinstancestrr   anycertifiwherer   )r   env_var_namess     r   set_ca_bundle_pathr      si    2 OM 	NS$K	0^,
D
  -7D- * ! /    r   )__doc__r   pathlibr   r   pyproj._contextr   pyproj._networkr   r   r   boolr    r   r   <module>r$      s>    
   7*0tczD'84'? *04 *0r   