From 158db28b46eb1e9b24705bf8e9c3e6ca69ae54b4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 23 Jun 2011 17:26:57 -0400 Subject: [PATCH] giscanner: Support srcdir != builddir __path__ modification trick from Johan Dahlin. --- giscanner/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) 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')) -- 2.7.4