projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
023a7ed
)
giscanner: Support srcdir != builddir
author
Colin Walters
<walters@verbum.org>
Thu, 23 Jun 2011 21:26:57 +0000
(17:26 -0400)
committer
Colin Walters
<walters@verbum.org>
Thu, 23 Jun 2011 21:26:57 +0000
(17:26 -0400)
__path__ modification trick from Johan Dahlin.
giscanner/__init__.py
patch
|
blob
|
history
diff --git
a/giscanner/__init__.py
b/giscanner/__init__.py
index
5614288
..
5ab7a95
100644
(file)
--- 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'))