o
    OBiš  ã                   @   s|   d dl Z d dlZd dlmZ ejdkreee je f Zneee jf Zdd„ Zdedede	fd	d
„Z
dedefdd„ZdS )é    N)ÚUnion)é   é	   c                 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
   ú_/var/www/html/Moveonwheels/move_on_wheels/venv/lib/python3.10/site-packages/setuptools/_path.pyÚensure_directory   s   r   Úp1Úp2Úreturnc                 C   s   t | ƒt |ƒ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
    )Únormpath)r   r   r
   r
   r   Ú	same_path   s   r   Úfilenamec                 C   s6   t jdkrtj | ¡n| }tj tj tj |¡¡¡S )z2Normalize a file/dir name for comparison purposes.Úcygwin)ÚsysÚplatformr   r   ÚabspathÚnormcaseÚrealpathr   )r   Úfiler
   r
   r   r   $   s   r   )r   r   Útypingr   Úversion_infoÚstrÚPathLikeÚStrPathr   Úboolr   r   r
   r
   r
   r   Ú<module>   s    
