diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-01-09 03:11:06 -0500 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-01-09 03:16:14 -0500 |
commit | 8b23c6c8755bca0b0c58b25ee3c4b06c06d72bcd (patch) | |
tree | 6b743fe7fdd23dabcd49b90b8ff35aab358da857 /giscanner/mallardwriter.py | |
parent | 634961eac7186ec95680916de0b627ea1c7441e7 (diff) | |
download | gobject-introspection-8b23c6c8755bca0b0c58b25ee3c4b06c06d72bcd.tar.gz |
doc: Put documentation templates into their own directories
Instead of cluttering up the giscanner directory, put templates
into their own files, with each language having its own templates
in its own directory for comfort.
Diffstat (limited to 'giscanner/mallardwriter.py')
-rw-r--r-- | giscanner/mallardwriter.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py index c8ab67dd..801df088 100644 --- a/giscanner/mallardwriter.py +++ b/giscanner/mallardwriter.py @@ -413,9 +413,11 @@ class MallardWriter(object): def _get_template_lookup(self): if 'UNINSTALLED_INTROSPECTION_SRCDIR' in os.environ: top_srcdir = os.environ['UNINSTALLED_INTROSPECTION_SRCDIR'] - template_dir = os.path.join(top_srcdir, 'giscanner') + srcdir = os.path.join(top_srcdir, 'giscanner') else: - template_dir = os.path.dirname(__file__) + srcdir = os.path.dirname(__file__) + + template_dir = os.path.join(srcdir, 'doctemplates', self._language) return TemplateLookup(directories=[template_dir], module_directory=tempfile.gettempdir(), |