From 04387deeab820e75c6d37d2ddd5b514cb7bcfd9e Mon Sep 17 00:00:00 2001 From: Pavel Aharoni Date: Sun, 11 Jun 2017 14:33:57 +0300 Subject: [SDC-32] separate Tosca Parser from DC Change-Id: I7e7f31ff2bd92fec22031f75b7051d129a21d01b Signed-off-by: Pavel Aharoni --- .../site-packages/setuptools/windows_support.py | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 jython-tosca-parser/src/main/resources/Lib/site-packages/setuptools/windows_support.py (limited to 'jython-tosca-parser/src/main/resources/Lib/site-packages/setuptools/windows_support.py') diff --git a/jython-tosca-parser/src/main/resources/Lib/site-packages/setuptools/windows_support.py b/jython-tosca-parser/src/main/resources/Lib/site-packages/setuptools/windows_support.py deleted file mode 100644 index cb977cf..0000000 --- a/jython-tosca-parser/src/main/resources/Lib/site-packages/setuptools/windows_support.py +++ /dev/null @@ -1,29 +0,0 @@ -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() -- cgit 1.2.3-korg