o
    ^+)h                     @   sD   d dl Z d dlmZ eee jf Zdd Zdededefdd	ZdS )
    N)Unionc                 C   s   t j| }t j|dd dS )z1Ensure that the parent directory of `path` existsT)exist_okN)ospathdirnamemakedirs)r   r    r   OC:\Users\User\Downloads\Proyecto_IoT\venv\Lib\site-packages\setuptools/_path.pyensure_directory   s   r
   p1p2returnc                 C   s   t j| t j|kS )a  Differs from os.path.samefile because it does not require paths to exist.
    Purely string based (no comparison between i-nodes).
    >>> same_path("a/b", "./a/b")
    True
    >>> same_path("a/b", "a/./b")
    True
    >>> same_path("a/b", "././a/b")
    True
    >>> same_path("a/b", "./a/b/c/..")
    True
    >>> same_path("a/b", "../a/b/c")
    False
    >>> same_path("a", "a/b")
    False
    )r   r   normpath)r   r   r   r   r	   	same_path   s   r   )	r   typingr   strPathLikeZ_Pathr
   boolr   r   r   r   r	   <module>   s
    