diff options
author | Colin Walters <walters@verbum.org> | 2011-07-27 09:11:02 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2011-07-27 09:15:02 -0400 |
commit | 9fcd8fa140030a270507fba0915aafa4df0933e0 (patch) | |
tree | 8274af8d78332ca7a52aa2749b2d951638c2426e /tools/g-ir-scanner.in | |
parent | f5f33223d876cefd56412df9d918ea7442f8322f (diff) | |
download | gobject-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-x | tools/g-ir-scanner.in | 3 |
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): |