summaryrefslogtreecommitdiff
path: root/setuptools/windows_support.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/windows_support.py')
-rw-r--r--setuptools/windows_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/windows_support.py b/setuptools/windows_support.py
index cb977cff..1ca64fbb 100644
--- a/setuptools/windows_support.py
+++ b/setuptools/windows_support.py
@@ -1,5 +1,4 @@
import platform
-import ctypes
def windows_only(func):
@@ -17,6 +16,7 @@ def hide_file(path):
`path` must be text.
"""
+ import ctypes
__import__('ctypes.wintypes')
SetFileAttributes = ctypes.windll.kernel32.SetFileAttributesW
SetFileAttributes.argtypes = ctypes.wintypes.LPWSTR, ctypes.wintypes.DWORD