tevent:build: improve detection of srcdir
authorMichael Adam <obnox@samba.org>
Fri, 20 Jun 2014 16:04:13 +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>
tevent/wscript

index bd19780c2a3b1784d28cc531551745140a09bc82..8d29e04cf1b2f8bac0ae17f2e8df6b6c0a95c3fe 100755 (executable)
@@ -10,7 +10,7 @@ import sys, os
 # 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 wafsamba, samba_dist, Options, Logs