File: //opt/osm/venv/lib/python3.10/site-packages/setuptools/__pycache__/windows_support.cpython-310.pyc
o
0i� � @ s d dl Z dd� Zedd� �ZdS )� Nc C s t �� dkr
dd� S | S )N�Windowsc _ s d S )N� )�args�kwargsr r �H/opt/osm/venv/lib/python3.10/site-packages/setuptools/windows_support.py�<lambda> s zwindows_only.<locals>.<lambda>)�platform�system)�funcr r r �windows_only s r c C sT ddl }td� |jjj}|jj|jjf|_|jj |_
d}|| |�}|s(|�� �dS )z�
Set the hidden attribute on a file or directory.
From http://stackoverflow.com/questions/19622133/
`path` must be text.
r Nzctypes.wintypes� )�ctypes�
__import__ZwindllZkernel32ZSetFileAttributesWZwintypesZLPWSTRZDWORD�argtypesZBOOL�restypeZWinError)�pathr
ZSetFileAttributes�FILE_ATTRIBUTE_HIDDEN�retr r r � hide_file
s
�r )r r r r r r r �<module> s