
    E^e                     b    d Z ddlZddlZddlmZ ddlmZ  ej        e          Z	dddefdZ
dS )	zBFunctions for finding Cookiecutter templates and other components.    N)Path)NonTemplatedInputDirExceptionrepo_dirzos.PathLike[str]returnc                     t                               d|            t          j        |           D ] }d|v rd|v rd|v rt	          | |          } n!t
          t                               d|           |S )zDetermine which child directory of ``repo_dir`` is the project template.

    :param repo_dir: Local directory of newly cloned repo.
    :return: Relative path to project template.
    z&Searching %s for the project template.cookiecutterz{{z}}z%The project template appears to be %s)loggerdebugoslistdirr   r   )r   str_pathproject_templates      1lib/python3.11/site-packages/cookiecutter/find.pyfind_templater      s     LL98DDDJx(( , ,X%%$(*:*:tx?O?O#Hh77E++
LL8:JKKK    )__doc__loggingr   pathlibr   cookiecutter.exceptionsr   	getLogger__name__r	   r    r   r   <module>r      s    H H  				       A A A A A A		8	$	$. 4      r   