Archived
saving dependency work
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user