/snap/core22/2437/usr/lib/python3/dist-packages/setuptools
NameSizeModeActions
command/-0755rm
extern/-0755rm
_distutils/-0755rm
_vendor/-0755rm
__pycache__/-0755rm
archive_util.py70770644editdlrm
build_meta.py105360644editdlrm
config.py231530644editdlrm
depends.py54990644editdlrm
dep_util.py9490644editdlrm
dist.py431620644editdlrm
errors.py15550644editdlrm
extension.py16840644editdlrm
glob.py48730644editdlrm
installer.py38240644editdlrm
launch.py8120644editdlrm
monkey.py52170644editdlrm
msvc.py505610644editdlrm
namespaces.py30930644editdlrm
package_index.py418720644editdlrm
py34compat.py2450644editdlrm
sandbox.py143480644editdlrm
script (dev).tmpl2180644editdlrm
script.tmpl1380644editdlrm
unicode_utils.py9410644editdlrm
version.py1440644editdlrm
wheel.py82880644editdlrm
windows_support.py7140644editdlrm
_deprecation_warning.py2180644editdlrm
_imp.py23920644editdlrm
__init__.py74480644editdlrm
Edit: /snap/core22/2437/usr/lib/python3/dist-packages/setuptools/windows_support.py (714B)
import platform import ctypes def windows_only(func): if platform.system() != 'Windows': return lambda *args, **kwargs: None return func @windows_only def hide_file(path): """ Set the hidden attribute on a file or directory. From http://stackoverflow.com/questions/19622133/ `path` must be text. """ __import__('ctypes.wintypes') SetFileAttributes = ctypes.windll.kernel32.SetFileAttributesW SetFileAttributes.argtypes = ctypes.wintypes.LPWSTR, ctypes.wintypes.DWORD SetFileAttributes.restype = ctypes.wintypes.BOOL FILE_ATTRIBUTE_HIDDEN = 0x02 ret = SetFileAttributes(path, FILE_ATTRIBUTE_HIDDEN) if not ret: raise ctypes.WinError()