[library-web] fix copy of additional figures



commit 86e3c6d4d386b59e72e1c0c7399a74b1b0e00c49
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Jan 29 16:35:52 2014 +0000

    fix copy of additional figures

 src/modtypes/mallard.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 72c4c1c..86876ae 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -522,6 +522,7 @@ class MallardModule(DocModule):
                             dst = os.path.join(web_output_dir, doc_figure + '.%s' % lang)
                             if not os.path.exists(os.path.split(dst)[0]):
                                 os.makedirs(os.path.split(dst)[0])
+                            open(dst, 'w').write(open(src, 'r').read())
 
 
         self.install_version_symlinks(doc)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]