Viewing File: /opt/alt/python35/lib/python3.5/site-packages/setuptools/__pycache__/windows_support.cpython-35.pyc
©‘\Ê ã @ 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)NZWindowsc _ s d S)N© )ÚargsÚkwargsr r ú/windows_support.pyÚ<lambda> s zwindows_only.<locals>.<lambda>)ÚplatformÚsystem)Úfuncr r r Úwindows_only s
r
c C sn t d ƒ t j j j } t j j t j j f | _ t j j | _
d } | | | ƒ } | sj t j ƒ ‚ d S)z‹
Set the hidden attribute on a file or directory.
From http://stackoverflow.com/questions/19622133/
`path` must be text.
zctypes.wintypesé N)Ú
__import__ÚctypesZwindllZkernel32ZSetFileAttributesWZwintypesZLPWSTRZDWORDZargtypesZBOOLZrestypeZWinError)ÚpathZSetFileAttributesÚFILE_ATTRIBUTE_HIDDENZretr r r Ú hide_file s
r )r r
r
r r r r r Ú<module> s
Back to Directory
File Manager