_path.pyc
1 o 2 ���c� � @ sD d dl Z d dlmZ eee jf Zdd� Zdededefdd �ZdS ) 3 � N)�Unionc C s t j�| �}t j|dd� dS )z1Ensure that the parent directory of `path` existsT)�exist_okN)�os�path�dirname�makedirs)r r � r ��C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\_path.py�ensure_directory s r 4 �p1�p2�returnc C s t j�| �t j�|�kS )a� Differs from os.path.samefile because it does not require paths to exist. 5 Purely string based (no comparison between i-nodes). 6 >>> same_path("a/b", "./a/b") 7 True 8 >>> same_path("a/b", "a/./b") 9 True 10 >>> same_path("a/b", "././a/b") 11 True 12 >>> same_path("a/b", "./a/b/c/..") 13 True 14 >>> same_path("a/b", "../a/b/c") 15 False 16 >>> same_path("a", "a/b") 17 False 18 )r r �normpath)r r r r r � same_path s r ) r �typingr �str�PathLike�_Pathr 19 �boolr r r r r �<module> s 20