Permalink
Browse files

changing path of source within EPUB file, to mesh with another tool I…

…'m going to write
  • Loading branch information...
1 parent 7dfe58c commit d1c170cd41eb5f4aa1d7e1bcdd21a2f8f3c2e62a @bkidwell committed Jan 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 mdepub/actions/epub.py
  2. +1 −1 mdepub/actions/extract.py
View
2 mdepub/actions/epub.py
@@ -116,7 +116,7 @@ def run():
metadata = None
with ZipFile(getFN("epub"), 'a') as zip:
if arguments.source:
- zip.write(getFN("zip"), "META-INF/source.mdepub.zip")
+ zip.write(getFN("zip"), "META-INF/source/mdepub_source.zip")
metadata = zip.read("content.opf")
shell.run(["zip", "-d", getFN("epub"), "content.opf"])
with ZipFile(getFN("epub"), 'a') as zip:
View
2 mdepub/actions/extract.py
@@ -31,7 +31,7 @@ def run():
fromf = abspath(arguments.fromfile)
with ZipFile(fromf, 'r') as epub:
- with epub.open("META-INF/source.mdepub.zip", 'r') as src_item:
+ with epub.open("META-INF/source/mdepub_source.zip", 'r') as src_item:
src_stream = StringIO(src_item.read())
with ZipFile(src_stream, 'r') as src_zip:

0 comments on commit d1c170c

Please sign in to comment.