diff --git a/src/eoatex2imxml.py b/src/eoatex2imxml.py index 5cc801f..f596957 100755 --- a/src/eoatex2imxml.py +++ b/src/eoatex2imxml.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2019-11-26 12:20:04 (kthoden)> +# Time-stamp: <2019-11-26 12:35:10 (kthoden)> """ Converts Latex files into a customized DocBook XML file. @@ -196,6 +196,13 @@ if not os.path.exists( DEBUG_DIR ): os.mkdir( DEBUG_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(f"Found no publication.cfg in {INPUT_DIR}. Exiting") + sys.exit( 1 ) + # Copy Support-Files from /Library/MPIWG to current directory shutil.copy(SUPPORT_PATH / "classes.dtd", OUTPUT_DIR) shutil.copy(SUPPORT_PATH / "mathml2-qname-1.mod", OUTPUT_DIR)