mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7182f45c98
commit
128522a946
@ -108,8 +108,7 @@ class Win32Freeze(Command, WixMixIn):
|
||||
for f in x[-1]:
|
||||
if f.lower().endswith('.dll'):
|
||||
f = self.j(x[0], f)
|
||||
if 'py2exe' not in f:
|
||||
shutil.copy2(f, self.dll_dir)
|
||||
shutil.copy2(f, self.dll_dir)
|
||||
shutil.copy2(
|
||||
r'C:\Python%(v)s\Lib\site-packages\pywin32_system32\pywintypes%(v)s.dll'
|
||||
% dict(v=self.py_ver), self.dll_dir)
|
||||
@ -118,7 +117,7 @@ class Win32Freeze(Command, WixMixIn):
|
||||
ans = []
|
||||
for x in items:
|
||||
ext = os.path.splitext(x)[1]
|
||||
if (not ext and (x in ('demos', 'tests') or 'py2exe' in x)) or \
|
||||
if (not ext and (x in ('demos', 'tests'))) or \
|
||||
(ext in ('.dll', '.chm', '.htm', '.txt')):
|
||||
ans.append(x)
|
||||
return ans
|
||||
|
Loading…
x
Reference in New Issue
Block a user