ó
.żWc           @   s4   d  d l  Z  d  d l Z d   Z e d    Z d S(   i˙˙˙˙Nc         C   s   t  j   d k r d   S|  S(   Nt   Windowsc          _   s   d  S(   N(   t   None(   t   argst   kwargs(    (    s>   /tmp/pip-build-Q3rTTP/setuptools/setuptools/windows_support.pyt   <lambda>   s    (   t   platformt   system(   t   func(    (    s>   /tmp/pip-build-Q3rTTP/setuptools/setuptools/windows_support.pyt   windows_only   s    c         C   sq   t  d  t j j j } t j j t j j f | _ t j j	 | _
 d } | |  |  } | sm t j    n  d S(   s   
    Set the hidden attribute on a file or directory.

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

    `path` must be text.
    s   ctypes.wintypesi   N(   t
   __import__t   ctypest   windllt   kernel32t   SetFileAttributesWt   wintypest   LPWSTRt   DWORDt   argtypest   BOOLt   restypet   WinError(   t   patht   SetFileAttributest   FILE_ATTRIBUTE_HIDDENt   ret(    (    s>   /tmp/pip-build-Q3rTTP/setuptools/setuptools/windows_support.pyt	   hide_file   s    	
(   R   R
   R   R   (    (    (    s>   /tmp/pip-build-Q3rTTP/setuptools/setuptools/windows_support.pyt   <module>   s   	