saving dependency work

This commit is contained in:
2022-12-10 21:17:54 -06:00
parent bf923c3406
commit c2c19e5382
5636 changed files with 666283 additions and 8587 deletions
@@ -3,7 +3,7 @@ import ctypes
def windows_only(func):
if platform.system() != 'Windows':
if platform.system() != "Windows":
return lambda *args, **kwargs: None
return func
@@ -17,7 +17,7 @@ def hide_file(path):
`path` must be text.
"""
__import__('ctypes.wintypes')
__import__("ctypes.wintypes")
SetFileAttributes = ctypes.windll.kernel32.SetFileAttributesW
SetFileAttributes.argtypes = ctypes.wintypes.LPWSTR, ctypes.wintypes.DWORD
SetFileAttributes.restype = ctypes.wintypes.BOOL