summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-04-17 16:22:17 -0400
committerColin Walters <walters@verbum.org>2012-04-17 16:38:15 -0400
commit29ed1d64ee4e2e4a18f34734b0ceda3e629cf465 (patch)
tree922394c1b5df0d9bbff6e0792a4a0b1e04a352be /misc
parentf41525d54f53edd9b0d665397f7c6c755ee3616b (diff)
downloadgobject-introspection-29ed1d64ee4e2e4a18f34734b0ceda3e629cf465.tar.gz
update-glib-annotations: Set required environment variables
Assume srcdir=builddir, so users don't have to set this.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/update-glib-annotations.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/update-glib-annotations.py b/misc/update-glib-annotations.py
index a65ec30e..813019d0 100755
--- a/misc/update-glib-annotations.py
+++ b/misc/update-glib-annotations.py
@@ -9,6 +9,11 @@ import sys
import subprocess
+path=os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+for k in ['UNINSTALLED_INTROSPECTION_SRCDIR',
+ 'UNINSTALLED_INTROSPECTION_BUILDDIR']:
+ if k not in os.environ:
+ os.environ[k] = path
possible_builddirs = ['../_build/', '..', '../../build/']
builddir = None