summaryrefslogtreecommitdiff
path: root/tools/g-ir-scanner.in
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-07-27 09:11:02 -0400
committerColin Walters <walters@verbum.org>2011-07-27 09:15:02 -0400
commit9fcd8fa140030a270507fba0915aafa4df0933e0 (patch)
tree8274af8d78332ca7a52aa2749b2d951638c2426e /tools/g-ir-scanner.in
parentf5f33223d876cefd56412df9d918ea7442f8322f (diff)
downloadgobject-introspection-9fcd8fa140030a270507fba0915aafa4df0933e0.tar.gz
Kill off config.py
Generating Python source code is problematic for srcdir != builddir; steal a the trick of putting global data in __builtins__ from jhbuild.
Diffstat (limited to 'tools/g-ir-scanner.in')
-rwxr-xr-xtools/g-ir-scanner.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/g-ir-scanner.in b/tools/g-ir-scanner.in
index ba2999c5..6f2b83e5 100755
--- a/tools/g-ir-scanner.in
+++ b/tools/g-ir-scanner.in
@@ -21,6 +21,9 @@
import os
import sys
+import __builtin__
+
+__builtin__.__dict__['DATADIR'] = "@pkgdatadir@"
if 'GI_SCANNER_DEBUG' in os.environ:
def on_exception(exctype, value, tb):