ó
%}Xc           @   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>   /usr/lib/python2.7/dist-packages/setuptools/windows_support.pyt   <lambda>   s    (   t   platformt   system(   t   func(    (    s>   /usr/lib/python2.7/dist-packages/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>   /usr/lib/python2.7/dist-packages/setuptools/windows_support.pyt	   hide_file   s    	
(   R   R
   R   R   (    (    (    s>   /usr/lib/python2.7/dist-packages/setuptools/windows_support.pyt   <module>   s   	