From 9e9e878e8f5f0fba51e3a576f17cf07d0857cff6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Apr 2010 10:18:39 +1000 Subject: s4-waf: allow standalone tarball build of libraries --- lib/tevent/wscript | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/tevent/wscript') diff --git a/lib/tevent/wscript b/lib/tevent/wscript index 1298eb4588..41ca66ad15 100644 --- a/lib/tevent/wscript +++ b/lib/tevent/wscript @@ -3,10 +3,17 @@ APPNAME = 'tevent' VERSION = '0.9.8' -srcdir = '../..' blddir = 'bin' -import sys +import sys, os + +# find the buildtools directory +buildtools = 'buildtools ../../buildtools' +for d in buildtools.split(): + if os.path.exists(d): + srcdir = os.path.dirname(d) or '.' + break + sys.path.insert(0, srcdir+"/buildtools/wafsamba") import wafsamba -- cgit