talloc:build: improve detection of srcdir
authorMichael Adam <obnox@samba.org>
Fri, 20 Jun 2014 16:04:44 +0000 (18:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Mar 2015 09:55:40 +0000 (10:55 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit cc86b4107acebf56c7bb17f59dd358615aed57b7)

lib/talloc/wscript

index 9df64d995d862ae4b49614ddbd54df84ac02e20c..986492ccde8c7cdac830dc237893775a2682b2fd 100644 (file)
@@ -12,7 +12,7 @@ import os, sys
 # find the buildtools directory
 srcdir = '.'
 while not os.path.exists(srcdir+'/buildtools') and len(srcdir.split('/')) < 5:
-    srcdir = '../' + srcdir
+    srcdir = srcdir + '/..'
 sys.path.insert(0, srcdir + '/buildtools/wafsamba')
 
 import sys