Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

giscanner: Support srcdir != builddir

__path__ modification trick from Johan Dahlin.
  • Loading branch information...
commit 158db28b46eb1e9b24705bf8e9c3e6ca69ae54b4 1 parent 023a7ed
@cgwalters cgwalters authored
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'))
Please sign in to comment.
Something went wrong with that request. Please try again.