o
    Wù¡iS  ã                   @  s    d dl mZ ddd„ZdgZdS )	é    )ÚannotationsÚ	long_nameÚstrÚreturnc                 C  sh   ddl }ddl m} |jjj}|j|j|jg|_|j|_	d}	 | 
|¡}|| ||ƒ}||kr1|jS |}q)z[Gets the short path name of a given long path - http://stackoverflow.com/a/23598461/200291.r   N)Úwintypes)Úctypesr   ÚwindllÚkernel32ÚGetShortPathNameWÚLPCWSTRÚLPWSTRÚDWORDÚargtypesÚrestypeÚcreate_unicode_bufferÚvalue)r   r   r   r
   Úoutput_buf_sizeÚ
output_bufÚneeded© r   úM/home/ubuntu/.local/lib/python3.10/site-packages/virtualenv/util/path/_win.pyÚget_short_path_name   s   

ûr   N)r   r   r   r   )Ú
__future__r   r   Ú__all__r   r   r   r   Ú<module>   s    
ÿ