From df5644cde6ba9b70870ddb01caaee423e00e49ad Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 19 Jan 2018 20:12:18 +0000 Subject: Read document XML path from _rels/.rels --- mammoth/docx/relationships_xml.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mammoth/docx/relationships_xml.py') diff --git a/mammoth/docx/relationships_xml.py b/mammoth/docx/relationships_xml.py index c30c428..555ba2d 100644 --- a/mammoth/docx/relationships_xml.py +++ b/mammoth/docx/relationships_xml.py @@ -18,6 +18,9 @@ class Relationships(object): return self._targets_by_type[relationship_type] +Relationships.EMPTY = Relationships([]) + + Relationship = collections.namedtuple("Relationship", ["relationship_id", "target", "type"]) -- cgit v1.2.3