B
    –(ÒbK  ã               @   s@   d dl Z e j e j e¡¡Zd	eedœdd„Zedœdd„Z	dS )
é    NF)ÚuserÚreturnc             C   s8   t j td¡}t j t j t¡d¡}t j |¡r4|S |S )z~
    Return the path to the pybind11 include directory. The historical "user"
    argument is unused, and may be removed.
    Zinclude)ÚosÚpathÚjoinÚDIRÚdirnameÚexists)r   Zinstalled_pathÚsource_path© r   ú0lib/python3.7/site-packages/pybind11/commands.pyÚget_include   s    r   )r   c              C   s2   t j tddd¡} t j | ¡r"| S d}t|ƒ‚dS )zA
    Return the path to the pybind11 CMake module directory.
    ZshareZcmakeZpybind11zGpybind11 not installed, installation required to access the CMake filesN)r   r   r   r   r	   ÚImportError)Zcmake_installed_pathÚmsgr   r   r   Úget_cmake_dir   s
    r   )F)
r   r   Úabspathr   Ú__file__r   ÚboolÚstrr   r   r   r   r   r   Ú<module>   s   
