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,7 +108,6 @@ class Win32Freeze(Command, WixMixIn):
|
|||||||
for f in x[-1]:
|
for f in x[-1]:
|
||||||
if f.lower().endswith('.dll'):
|
if f.lower().endswith('.dll'):
|
||||||
f = self.j(x[0], f)
|
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(
|
shutil.copy2(
|
||||||
r'C:\Python%(v)s\Lib\site-packages\pywin32_system32\pywintypes%(v)s.dll'
|
r'C:\Python%(v)s\Lib\site-packages\pywin32_system32\pywintypes%(v)s.dll'
|
||||||
@ -118,7 +117,7 @@ class Win32Freeze(Command, WixMixIn):
|
|||||||
ans = []
|
ans = []
|
||||||
for x in items:
|
for x in items:
|
||||||
ext = os.path.splitext(x)[1]
|
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')):
|
(ext in ('.dll', '.chm', '.htm', '.txt')):
|
||||||
ans.append(x)
|
ans.append(x)
|
||||||
return ans
|
return ans
|
||||||
|
Loading…
x
Reference in New Issue
Block a user