mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
fa4506a019
commit
9c562b35c3
@ -191,8 +191,10 @@ class LinuxFreeze(Command):
|
|||||||
if os.path.isdir(x):
|
if os.path.isdir(x):
|
||||||
shutil.copytree(x, self.j(dest, self.b(x)),
|
shutil.copytree(x, self.j(dest, self.b(x)),
|
||||||
ignore=ignore_in_lib)
|
ignore=ignore_in_lib)
|
||||||
if os.path.isfile(x) and ext in ('.py', '.so'):
|
elif os.path.isfile(x) and ext in ('.py', '.so'):
|
||||||
shutil.copy2(x, dest)
|
shutil.copy2(x, dest)
|
||||||
|
else:
|
||||||
|
raise ValueError('%s does not exist in site-packages' % x)
|
||||||
|
|
||||||
for x in os.listdir(self.SRC):
|
for x in os.listdir(self.SRC):
|
||||||
shutil.copytree(self.j(self.SRC, x), self.j(dest, x),
|
shutil.copytree(self.j(self.SRC, x), self.j(dest, x),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user