summaryrefslogtreecommitdiff
path: root/lib/talloc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/talloc')
-rw-r--r--lib/talloc/wscript16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/talloc/wscript b/lib/talloc/wscript
index 17b3b1d349..e577643595 100644
--- a/lib/talloc/wscript
+++ b/lib/talloc/wscript
@@ -5,16 +5,18 @@ VERSION = '2.0.2'
blddir = 'bin'
+import os, sys
+
# 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
+buildtools = 'buildtools'
+while not os.path.exists(buildtools) and len(buildtools.split('/')) < 5:
+ buildtools = '../' + buildtools
+srcdir = os.path.dirname(buildtools) or '.'
+
+sys.path.insert(0, buildtools + "/wafsamba")
-LIBREPLACE_DIR= srcdir + '/lib/replace'
+LIBREPLACE_DIR= '../replace'
import sys
sys.path.insert(0, srcdir+"/buildtools/wafsamba")