ldb:build: improve detection of srcdir
[ira/third_party.git] / ldb / wscript
index e88e95a73631a21ee2b273a26e5dcbd3f1d5e988..a375675a158299be49aa45bbdb59ac52b4351156 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