buildtools/wafsamba: use top and out for waf 2.0
authorAlexander Bokovoy <ab@samba.org>
Wed, 27 Jun 2018 12:03:08 +0000 (15:03 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:26 +0000 (06:37 +0200)
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_third_party.py

index 0ababa56065c3a1416f46ea6e525f72eb96f593d..f86d38710c4a54b228272571c26c08c3e90d128f 100644 (file)
@@ -6,7 +6,7 @@ from waflib.Configure import conf
 
 @conf
 def CHECK_FOR_THIRD_PARTY(conf):
-    return os.path.exists(os.path.join(Context.g_module.srcdir, 'third_party'))
+    return os.path.exists(os.path.join(Context.g_module.top, 'third_party'))
 
 Build.BuildContext.CHECK_FOR_THIRD_PARTY = CHECK_FOR_THIRD_PARTY