summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/wscript10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/talloc/wscript b/lib/talloc/wscript
index f264513916..a7476b7ec4 100644
--- a/lib/talloc/wscript
+++ b/lib/talloc/wscript
@@ -3,9 +3,17 @@
APPNAME = 'talloc'
VERSION = '2.0.2'
-srcdir = '../..'
blddir = 'bin'
+# find the buildtools directory
+import os
+buildtools = 'buildtools ../../buildtools'
+for d in buildtools.split():
+ if os.path.exists(d):
+ srcdir = os.path.dirname(d) or '.'
+ break
+
+
LIBREPLACE_DIR= srcdir + '/lib/replace'
import sys