o
    i                     @   s*   d dl Z dd ZededdfddZdS )    Nc                 C   s   t  dkr
dd S | S )NWindowsc                  _   s   d S )N )argskwargsr   r   W/home/ubuntu/veenaModal/venv/lib/python3.10/site-packages/setuptools/windows_support.py<lambda>   s    zwindows_only.<locals>.<lambda>)platformsystem)funcr   r   r   windows_only   s   r   pathreturnc                 C   sT   ddl }ddl}|jjj}|jj|jjf|_|jj	|_
d}|| |}|s(| dS )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    