python (3.11.7)
    e                        d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlmZm	Z	 d dl
mZ d dlm
Z
 d dlmZ 	 d dlZn
# e$ r dZY nw xY w	 e j         dZn
# e$ r dZY nw xY w	 d dlZdZd	 Zn
# e$ r dZY nw xY wd
 Zd Z G d d
ej                  Z G d de          Z G d de
j        ej                  Z G d de          Ze dk    r ej!                     dS dS )    N)	os_helper)
TestFailed
is_emscripten)FakePath)test_genericpath)
TemporaryFileTFc                    t          j        dd          j        }t           j        t           j        t           j        g|_        t           j        |_         || d d          }|s3t          d                    t          j	                                        t          j
        |          } || ||          }|d |         S )Nkernel32T)use_last_errorr   z&failed to get short path name 0x{:08X})ctypesWinDLLGetShortPathNameW	c_wchar_pc_uint32argtypesrestypeOSErrorformatget_last_errorcreate_unicode_buffer)pathGSPN
result_lenresults       D/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_ntpath.py_getshortpathnamer   "