[gobject-introspection] giscanner: Support srcdir != builddir
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] giscanner: Support srcdir != builddir
- Date: Thu, 23 Jun 2011 21:28:25 +0000 (UTC)
commit 158db28b46eb1e9b24705bf8e9c3e6ca69ae54b4
Author: Colin Walters <walters verbum org>
Date: Thu Jun 23 17:26:57 2011 -0400
giscanner: Support srcdir != builddir
__path__ modification trick from Johan Dahlin.
giscanner/__init__.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/__init__.py b/giscanner/__init__.py
index 5614288..5ab7a95 100644
--- a/giscanner/__init__.py
+++ b/giscanner/__init__.py
@@ -17,3 +17,8 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
+
+import os
+builddir = os.environ.get('UNINSTALLED_INTROSPECTION_BUILDDIR')
+if builddir is not None:
+ __path__.append(os.path.join(builddir, 'giscanner'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]