
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
vh                 @   s(   d dl Z d dlZdd Zedd ZdS )    Nc             C   s   t j dkrdd S | S )NZWindowsc              _   s   d S )N )argskwargsr   r   %/usr/lib/python3.6/windows_support.py<lambda>   s    zwindows_only.<locals>.<lambda>)platformsystem)funcr   r   r   windows_only   s    r
   c             C   sL   t d tjjj}tjjtjjf|_tjj	|_
d}|| |}|sHtj dS )z
    Set the hidden attribute on a file or directory.

    From http://stackoverflow.com/questions/19622133/

    `path` must be text.
    zctypes.wintypes   N)
__import__ctypesZwindllZkernel32ZSetFileAttributesWZwintypesZLPWSTRZDWORDZargtypesZBOOLZrestypeZWinError)pathZSetFileAttributesFILE_ATTRIBUTE_HIDDENretr   r   r   	hide_file   s    	


r   )r   r   r
   r   r   r   r   r   <module>   s   