o
    ÒtBh>  ã                   @   s:   d Z ddlZddlmZ d	dedeejef fdd„ZdS )
z9Helper functions to get location of UNU.RAN source files.é    N)ÚUnionFÚret_pathÚreturnc                 C   s    t  t¡jd }| r|S t|ƒS )z-Directory where root unuran/ directory lives.Úunuran)ÚpathlibÚPathÚ__file__ÚparentÚstr)r   Úp© r   úo/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/scipy/_lib/_unuran_utils.pyÚ_unuran_dir   s   r   )F)Ú__doc__r   Útypingr   Úboolr   r
   r   r   r   r   r   Ú<module>   s    "