Your IP : 216.73.216.178


Current Path : /usr/lib/python3.12/site-packages/setuptools/__pycache__/
Upload File :
Current File : //usr/lib/python3.12/site-packages/setuptools/__pycache__/_path.cpython-312.pyc

�

9���b;���ddlZddlZddlmZejdk\reeejefZneeejfZd�Zdedede	fd�Z
d	edefd
�Zy)�N)�Union)��	c�p�tjj|�}tj|d��y)z1Ensure that the parent directory of `path` existsT)�exist_okN)�os�path�dirname�makedirs)r	r
s  �5/usr/lib/python3.12/site-packages/setuptools/_path.py�ensure_directoryr
s"���g�g�o�o�d�#�G��K�K��$�'��p1�p2�returnc�0�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)rrs  r�	same_pathrs�� �B�<�8�B�<�'�'r�filenamec��tjdk(rtjj	|�n|}tjjtjj
tjj|���S)z2Normalize a file/dir name for comparison purposes.�cygwin)�sys�platformrr	�abspath�normcase�realpathr)r�files  rrr$sV��),����(@�2�7�7�?�?�8�$�h�D�
�7�7���B�G�G�,�,�R�W�W�-=�-=�d�-C�D�E�Er)rr�typingr�version_info�str�PathLike�StrPathr
�boolrr�rr�<module>r%s|��	�
�����v���C����S�)�)�*�G��C����$�%�G�(�(�'�(�w�(�4�(�&F�w�F�3�Fr