mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-30 03:14:15 +01:00
...
This commit is contained in:
parent
a25a236f32
commit
40d6c59e19
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ def run(self, path_to_ebook):
|
|||
txtz = zipfile.ZipFile(of.name, 'w')
|
||||
# Add selected TXT file to archive.
|
||||
txtz.write(path_to_ebook, os.path.basename(path_to_ebook), zipfile.ZIP_DEFLATED)
|
||||
# metadat.opf
|
||||
# metadata.opf
|
||||
if os.path.exists(os.path.join(base_dir, 'metadata.opf')):
|
||||
txtz.write(os.path.join(base_dir, 'metadata.opf'), 'metadata.opf', zipfile.ZIP_DEFLATED)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue