fix: tweak setup.py handling of template directory · python-openxml/python-docx@da75fcf

@@ -8,21 +8,22 @@

88991010

nsmap = {

11-

"a": ("http://schemas.openxmlformats.org/drawingml/2006/main"),

12-

"c": ("http://schemas.openxmlformats.org/drawingml/2006/chart"),

13-

"cp": ("http://schemas.openxmlformats.org/package/2006/metadata/core-properties"),

14-

"dc": ("http://purl.org/dc/elements/1.1/"),

15-

"dcmitype": ("http://purl.org/dc/dcmitype/"),

16-

"dcterms": ("http://purl.org/dc/terms/"),

17-

"dgm": ("http://schemas.openxmlformats.org/drawingml/2006/diagram"),

18-

"m": ("http://schemas.openxmlformats.org/officeDocument/2006/math"),

19-

"pic": ("http://schemas.openxmlformats.org/drawingml/2006/picture"),

20-

"r": ("http://schemas.openxmlformats.org/officeDocument/2006/relationships"),

21-

"sl": ("http://schemas.openxmlformats.org/schemaLibrary/2006/main"),

22-

"w": ("http://schemas.openxmlformats.org/wordprocessingml/2006/main"),

23-

"wp": ("http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"),

24-

"xml": ("http://www.w3.org/XML/1998/namespace"),

25-

"xsi": ("http://www.w3.org/2001/XMLSchema-instance"),

11+

"a": "http://schemas.openxmlformats.org/drawingml/2006/main",

12+

"c": "http://schemas.openxmlformats.org/drawingml/2006/chart",

13+

"cp": "http://schemas.openxmlformats.org/package/2006/metadata/core-properties",

14+

"dc": "http://purl.org/dc/elements/1.1/",

15+

"dcmitype": "http://purl.org/dc/dcmitype/",

16+

"dcterms": "http://purl.org/dc/terms/",

17+

"dgm": "http://schemas.openxmlformats.org/drawingml/2006/diagram",

18+

"m": "http://schemas.openxmlformats.org/officeDocument/2006/math",

19+

"pic": "http://schemas.openxmlformats.org/drawingml/2006/picture",

20+

"r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",

21+

"sl": "http://schemas.openxmlformats.org/schemaLibrary/2006/main",

22+

"w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main",

23+

'w14': "http://schemas.microsoft.com/office/word/2010/wordml",

24+

"wp": "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",

25+

"xml": "http://www.w3.org/XML/1998/namespace",

26+

"xsi": "http://www.w3.org/2001/XMLSchema-instance",

2627

}

27282829

pfxmap = dict((value, key) for key, value in nsmap.items())