File: //home/arjun/projects/env/lib/python3.10/site-packages/pytest_cov/__pycache__/embed.cpython-310.pyc
o
'we�
� @ s` d Z ddlZddlZddlZdadd� Zdd� Zdd� Zi Zda d a
d
d� Zdd
� Zdd� Z
dS )as Activate coverage at python startup if appropriate.
The python site initialisation will ensure that anything we import
will be removed and not visible at the end of python startup. However
we minimise all work by putting these init actions in this separate
module and only importing what is needed when needed.
For normal python startup when coverage should not be activated the pth
file checks a single env var and does not import or call the init fn
here.
For python startup when an ancestor process has set the env indicating
that code coverage is being collected we activate coverage based on
info passed via env vars.
� Nc C s� t j�d�} t j�d�}t j�d�}t j�d�dkrdnd }t j�d�}|rhtr+t� dd l}| t jv r7d } n| �t j�} |t jkrDd}|j| |d|d|d � }a|� � |�
� |r`|�|� d
|_d
|_
|S d S )N�COV_CORE_SOURCE�COV_CORE_CONFIG�COV_CORE_DATAFILE�COV_CORE_BRANCH�enabledT�COV_CORE_CONTEXTr )�source�branch�data_suffix�config_file� auto_data� data_fileF)�os�environ�get�_active_cov�cleanup�coverage�pathsep�split�Coverage�load�start�switch_context�
_warn_no_data�_warn_unimported_source)�
cov_source�
cov_config�cov_datafile�
cov_branch�cov_contextr �cov� r"