o
    [h                     @   s    d dl Z dd Ze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   /home/ubuntu/experiments/live_experiments/Pythonexperiments/Otree/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   c                 C   sT   ddl }td |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 http://stackoverflow.com/questions/19622133/

    `path` must be text.
    r   Nzctypes.wintypes   )ctypes
__import__ZwindllZkernel32ZSetFileAttributesWZwintypesZLPWSTRZDWORDargtypesZBOOLrestypeZWinError)pathr   ZSetFileAttributesFILE_ATTRIBUTE_HIDDENretr   r   r   	hide_file
   s   	


r   )r   r   r   r   r   r   r   <module>   s    