Permalink
Browse files

giscanner: Support srcdir != builddir

__path__ modification trick from Johan Dahlin.
  • Loading branch information...
1 parent 023a7ed commit 158db28b46eb1e9b24705bf8e9c3e6ca69ae54b4 @cgwalters cgwalters committed Jun 23, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 giscanner/__init__.py
View
5 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'))

0 comments on commit 158db28

Please sign in to comment.