
    3iS                        d dl mZ ddZdgZy)    )annotationsc                ,   ddl }ddl m} |j                  j                  j                  }|j
                  |j                  |j                  g|_        |j                  |_	        d}	 |j                  |      } || ||      }||k\  r|j                  S |}/)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)	long_namer   r   r	   output_buf_size
output_bufneededs          L/var/www/opsc/venv/lib/python3.12/site-packages/virtualenv/util/path/_win.pyget_short_path_namer      s    ..@@"*"2"2HOOX^^!T (O
11/B
"9j/Jf$###      r   N)r   strreturnr   )
__future__r   r   __all__ r   r   <module>r      s    "!$ r   