summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 15:38:15 +0100
committerTomeu Vizoso <tomeu.vizoso@collabora.com>2012-02-20 15:38:15 +0100
commiteb87a304de537271ccc1d0d5406fe5ca32d29675 (patch)
tree2e3e6b164edb86d9472bd0126e19f171eca3c2e3
parenta7befa29ae7252327eca9394fa866338a51dea11 (diff)
downloadgobject-introspection-eb87a304de537271ccc1d0d5406fe5ca32d29675.tar.gz
g-ir-doc-tool: Install the Mako template files
-rw-r--r--Makefile-giscanner.am14
-rw-r--r--giscanner/mallardwriter.py2
2 files changed, 15 insertions, 1 deletions
diff --git a/Makefile-giscanner.am b/Makefile-giscanner.am
index d4e417a3..e8edf9d1 100644
--- a/Makefile-giscanner.am
+++ b/Makefile-giscanner.am
@@ -42,6 +42,20 @@ pkgpyexec_PYTHON = \
giscanner/libtoolimporter.py \
giscanner/odict.py \
giscanner/mallardwriter.py \
+ giscanner/mallard-C-class.tmpl \
+ giscanner/mallard-C-default.tmpl \
+ giscanner/mallard-C-function.tmpl \
+ giscanner/mallard-C-namespace.tmpl \
+ giscanner/mallard-C-property.tmpl \
+ giscanner/mallard-C-record.tmpl \
+ giscanner/mallard-C-signal.tmpl \
+ giscanner/mallard-Python-class.tmpl \
+ giscanner/mallard-Python-default.tmpl \
+ giscanner/mallard-Python-function.tmpl \
+ giscanner/mallard-Python-namespace.tmpl \
+ giscanner/mallard-Python-property.tmpl \
+ giscanner/mallard-Python-record.tmpl \
+ giscanner/mallard-Python-signal.tmpl \
giscanner/maintransformer.py \
giscanner/message.py \
giscanner/shlibs.py \
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index 65123a88..327ccc96 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -210,7 +210,7 @@ class MallardWriter(object):
top_srcdir = os.environ['UNINSTALLED_INTROSPECTION_SRCDIR']
template_dir = os.path.join(top_srcdir, 'giscanner')
else:
- template_dir = 'unimplemented'
+ template_dir = os.path.dirname(__file__)
file_name = os.path.join(template_dir, template_name)
file_name = os.path.abspath(file_name)