summaryrefslogtreecommitdiff
path: root/tools/g-ir-tool-template.in
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2017-10-23 04:53:04 -0400
committerNirbheek Chauhan <nirbheek@centricular.com>2018-03-10 19:05:19 +0530
commit69fe98bdccc9c1c50e51bdfffa26cddacf07b575 (patch)
treef3cf06942548616e072fbad478c008bb77b516a3 /tools/g-ir-tool-template.in
parent81c7db8c53cc4dc1a7bb772fdca1bd5ec78708eb (diff)
downloadgobject-introspection-69fe98bdccc9c1c50e51bdfffa26cddacf07b575.tar.gz
Initial work on meson port
Diffstat (limited to 'tools/g-ir-tool-template.in')
-rwxr-xr-x[-rw-r--r--]tools/g-ir-tool-template.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/g-ir-tool-template.in b/tools/g-ir-tool-template.in
index edc68a4c..2eac21fd 100644..100755
--- a/tools/g-ir-tool-template.in
+++ b/tools/g-ir-tool-template.in
@@ -62,5 +62,9 @@ if srcdir is not None:
sys.path.insert(0, pylibdir)
+builddir = os.getenv('UNINSTALLED_INTROSPECTION_BUILDDIR', None)
+if builddir is not None:
+ sys.path.insert(0, os.path.join(builddir, 'giscanner'))
+
from giscanner.@TOOL_MODULE@ import @TOOL_FUNCTION@
sys.exit(@TOOL_FUNCTION@(sys.argv))