[gobject-introspection] update-glib-annotations: Set required environment variables
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] update-glib-annotations: Set required environment variables
- Date: Tue, 17 Apr 2012 20:39:05 +0000 (UTC)
commit 29ed1d64ee4e2e4a18f34734b0ceda3e629cf465
Author: Colin Walters <walters verbum org>
Date: Tue Apr 17 16:22:17 2012 -0400
update-glib-annotations: Set required environment variables
Assume srcdir=builddir, so users don't have to set this.
misc/update-glib-annotations.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/misc/update-glib-annotations.py b/misc/update-glib-annotations.py
index a65ec30..813019d 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]