Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create debug directory
  • Loading branch information
Klaus Thoden committed Aug 31, 2018
1 parent 223e0c0 commit 12fdaf2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libeoaconvert.py
Expand Up @@ -243,6 +243,9 @@ def fix_bib_entries(div_snippet):
def debug_xml_here(xml_tree, xml_filename):
"""Dump current state of an XML tree into a file for inspection"""

if not os.path.exists("debug"):
os.makedirs(os.path.expanduser("debug"))

xml_path = "%s/debug/debug_%s.xml" % (os.getcwd(), xml_filename)

if isinstance(xml_tree, etree._ElementTree):
Expand Down

0 comments on commit 12fdaf2

Please sign in to comment.