
    [Fi                         d dl Z d dlZd dlmZ d dlmZ deddfdZ ej
                  d      d	eddfd
       Z ej
                  d      deddfd       Zy)    N)Config)Parserparserreturnc                 .    | j                  dddg        y )N
pythonpathpathszAdd paths to sys.path)typehelpdefault)addini)r   s    e/var/www/html/BankruptcyAI-uat/bankruptcy-ai/venv/lib/python3.12/site-packages/_pytest/python_path.pypytest_addoptionr      s    
MM,W3JTVMW    T)tryfirstearly_configc                     t        | j                  d            D ]+  }t        j                  j	                  dt        |             - y )Nr   r   )reversedgetinisyspathinsertstr)r   r   s     r   pytest_load_initial_conftestsr      s9     ,,\:; &3t9%&r   )trylastconfigc                     | j                  d      D ]?  }t        |      }|t        j                  v s!t        j                  j	                  |       A y )Nr   )r   r   r   r   remove)r   r   path_strs      r   pytest_unconfigurer       s?    l+ &t9sxxHHOOH%&r   )r   pytestr   r   r   hookimplr   r     r   r   <module>r$      s    
   XV X X $& &4 &  & &v &$ & &r   