Search any pywintypes27.dll

This commit is contained in:
Oleksii Shevchuk 2017-02-11 03:08:32 +02:00
parent fcac5768cf
commit 08d8688c8c
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ compileall.compile_dir(PATCHES)
zf = zipfile.ZipFile(os.path.join('resources','library.zip'), mode='w', compression=zipfile.ZIP_DEFLATED)
if 'win' in sys.platform:
zf.write(r'C:\Python27\Lib\site-packages\pywin32_system32\pywintypes27.dll', 'pywintypes27.dll')
for root, _, files in os.walk(r'C:\Python27\Lib\site-packages'):
for file in files:
if file.lower() == 'pywintypes27.dll':
zf.write(os.path.join(root, file), 'pywintypes27.dll')
try:
content = set()