talloc:build: improve detection of srcdir
authorMichael Adam <obnox@samba.org>
Fri, 20 Jun 2014 16:04:44 +0000 (18:04 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 20 Jun 2014 21:38:10 +0000 (23:38 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
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