mikemaccana/python-docx — pull request #23 by alexeybaj (2012-11-14 11:28:30+00:00)
Title: One should be able to attach images to document without copying them to template dir.

It is inconvenient to always have images in current dir in order to attach them to document. It is also not always possible to copy image to the templates because of file rights. Moreover, it looks like media directory is never cleaned out.

As there is no real reason to copy images to templates in order to store them in docx file, I propose these changes to merge. Full image paths are stored in relationshiplist, and are copied directly to zip file in savedocx. picture now accepts full paths, and savedocx accepts relationshiplist instead of wordrelationshiplist.