a
    µ*`5  ã                   @   s   d dl Z d dlZddd„ZdS )é    NFc                 C   s°   t j t j |¡¡}t j |d¡}t j |¡s<t j |d¡}t j | ¡rf|s\td|  ƒ dS t | ¡ t 	ddd¡}t j |¡}t j 
|¡r tj|| |dd	 ntd
| ƒ dS )z4
    Copies the notebooks to the supplied path.
    z
./examplesz../exampleszC%s directory already exists, either delete it or set the force flagNz.ipynb_checkpointsz*.pycz*~T)ÚignoreZsymlinkszCannot find %s)ÚosÚpathÚabspathÚdirnameÚjoinÚexistsÚprintÚshutilZrmtreeZignore_patternsÚisdirZcopytree)r   ÚrootÚverboseZforceÚfilepathZexample_dirr   Z	tree_root© r   ú)lib/python3.9/site-packages/pyct/build.pyÚexamples   s    
r   )FF)r   r
   r   r   r   r   r   Ú<module>   s   