Skip to content

Commit

Permalink
Fixed paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Feb 28, 2020
1 parent ea181fe commit 6080f67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/imxml2epub.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2020-01-16 13:04:22 (kthoden)>
# Time-stamp: <2020-02-28 17:33:23 (kthoden)>

""" Convert a customized DocBook XML file into a set of files that
constitute the contents of an EPUB file.
Expand Down Expand Up @@ -152,9 +152,9 @@
# Check for folder and necessary files
if not os.path.exists( OUTPUT_DIR / "publication.cfg"):
logging.info(f"The publication.cfg file is missing in {OUTPUT_DIR} directory.")
if os.path.exists(PUBLICATION_DIR / "publication.cfg"):
shutil.copy(PUBLICATION_DIR / "publication.cfg", OUTPUT_DIR)
logging.info(f"Copied from {PUBLICATION_DIR}.")
if os.path.exists(INPUT_DIR / "publication.cfg"):
shutil.copy(INPUT_DIR / "publication.cfg", OUTPUT_DIR)
logging.info(f"Copied from {INPUT_DIR}.")
else:
logging.error("Found no publication.cfg. Exiting")
sys.exit( 1 )
Expand Down Expand Up @@ -1036,7 +1036,7 @@ class FootnoteError(Exception):
for xmlChapter in xmlChapters:
groupings = libeoaconvert.get_bigfoot_data(xmlChapter)
xmlFootnotes = list(xmlChapter.findall(".//note"))
logging.info("here come the footnotes. found" + str(len(xmlFootnotes)))
logging.info("Here come the footnotes. Found " + str(len(xmlFootnotes)))
has_old = 0 != len(xmlFootnotes)
has_new = 0 != len(
[ # flatten the association list whose values are lists, so we can take the length
Expand Down

0 comments on commit 6080f67

Please sign in to comment.