[library-web] mallard: also copy files from media/ in autodiscover mode (GNOME bug 685456)
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] mallard: also copy files from media/ in autodiscover mode (GNOME bug 685456)
- Date: Mon, 29 Oct 2012 16:13:05 +0000 (UTC)
commit 287f854e2f9dffed0e66326f672141ea17957c4b
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Mon Oct 29 17:12:17 2012 +0100
mallard: also copy files from media/ in autodiscover mode (GNOME bug 685456)
src/modtypes/mallard.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 931e27f..efa00d2 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -228,6 +228,7 @@ class MallardModule(DocModule):
except IndexError:
figures_dirname = os.path.join(ext_dirname, self.dirname, 'C', 'figures')
images_dirname = os.path.join(ext_dirname, self.dirname, 'C', 'images')
+ media_dirname = os.path.join(ext_dirname, self.dirname, 'C', 'media')
doc_figures = []
if os.path.exists(figures_dirname):
doc_figures += [os.path.join('figures', x) for x in \
@@ -237,6 +238,10 @@ class MallardModule(DocModule):
doc_figures += [os.path.join('images', x) for x in \
os.listdir(images_dirname) \
if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg', '.svg')]
+ if os.path.exists(media_dirname):
+ doc_figures += [os.path.join('media', x) for x in \
+ os.listdir(media_dirname) \
+ if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg', '.svg')]
doc_linguas.sort()
if app.config.languages:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]