[gobject-introspection/mallard-templates] g-ir-doc-tool: Install the Mako template files



commit eb87a304de537271ccc1d0d5406fe5ca32d29675
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Mon Feb 20 15:38:15 2012 +0100

    g-ir-doc-tool: Install the Mako template files

 Makefile-giscanner.am      |   14 ++++++++++++++
 giscanner/mallardwriter.py |    2 +-
 2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/Makefile-giscanner.am b/Makefile-giscanner.am
index d4e417a..e8edf9d 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 65123a8..327ccc9 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)



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