[jhbuild] set source directory according to jhbuild module, not start script



commit feb80749babbd64e29fbe6e160707b4fa0848621
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat May 23 10:19:09 2009 +0200

    set source directory according to jhbuild module, not start script
---
 scripts/jhbuild.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/scripts/jhbuild.in b/scripts/jhbuild.in
index 781d459..817a83b 100644
--- a/scripts/jhbuild.in
+++ b/scripts/jhbuild.in
@@ -10,7 +10,8 @@ if USE_CHECKOUT_SRC:
     sys.path.insert(0, '@jhbuilddir@')
     pkgdatadir = None
     datadir = None
-    srcdir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+    import jhbuild
+    srcdir = os.path.abspath(os.path.join(os.path.dirname(jhbuild.__file__), '..'))
 else:
     pkgdatadir = "@pkgdatadir@"
     datadir = "@datadir@"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]