File: //usr/local/lib/python3.10/dist-packages/setuptools/__pycache__/windows_support.cpython-310.pyc
o
��h� � @ s* d dl Z dd� Zededdfdd��ZdS )� Nc C s t �� dkr
dd� S | S )N�Windowsc _ s d S )N� )�args�kwargsr r �E/usr/local/lib/python3.10/dist-packages/setuptools/windows_support.py�<lambda> s zwindows_only.<locals>.<lambda>)�platform�system)�funcr r r �windows_only s r �path�returnc C sT ddl }ddl}|jjj}|jj|jjf|_|jj |_
d}|| |�}|s(|�� �dS )z�
Set the hidden attribute on a file or directory.
From https://stackoverflow.com/questions/19622133/
`path` must be text.
r N� )�ctypes�ctypes.wintypes�windll�kernel32�SetFileAttributesW�wintypes�LPWSTR�DWORD�argtypes�BOOL�restype�WinError)r r �SetFileAttributes�FILE_ATTRIBUTE_HIDDEN�retr r r � hide_file
s
�r )r r �strr r r r r �<module> s