summaryrefslogtreecommitdiff
path: root/giscanner/__init__.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-06-23 17:26:57 -0400
committerColin Walters <walters@verbum.org>2011-06-23 17:26:57 -0400
commit158db28b46eb1e9b24705bf8e9c3e6ca69ae54b4 (patch)
treeb3958a081ee3b935183a240b75d2fc0c6a54aaac /giscanner/__init__.py
parent023a7ed00e33a6a9e5f3fee742d4c210ce108ecd (diff)
downloadgobject-introspection-158db28b46eb1e9b24705bf8e9c3e6ca69ae54b4.tar.gz
giscanner: Support srcdir != builddir
__path__ modification trick from Johan Dahlin.
Diffstat (limited to 'giscanner/__init__.py')
-rw-r--r--giscanner/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/giscanner/__init__.py b/giscanner/__init__.py
index 5614288a..5ab7a957 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'))