mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 07:22:58 +02:00
...
This commit is contained in:
parent
7182f45c98
commit
128522a946
1 changed files with 2 additions and 3 deletions
|
|
@ -108,8 +108,7 @@ def freeze(self):
|
|||
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 @@ def ignore_lib(root, items):
|
|||
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…
Reference in a new issue