From: Alexander Bokovoy Date: Tue, 3 Jul 2018 08:18:05 +0000 (+0300) Subject: selftest/wscript: properly handle env.cwd which is a list, not a string X-Git-Tag: tdb-1.3.17~1789 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75d5bcb4d84f697bed5e13569b10a893fe487ff3;p=thirdparty%2Fsamba.git selftest/wscript: properly handle env.cwd which is a list, not a string Signed-off-by: Alexander Bokovoy Reviewed-by: Andrew Bartlett --- diff --git a/selftest/wscript b/selftest/wscript index 2c45e1bf8f7..ce1e117cbdc 100644 --- a/selftest/wscript +++ b/selftest/wscript @@ -202,7 +202,8 @@ def cmd_testonly(opt): # if we are using a system version of ldb then we need to tell it to # load modules from our modules path if env.USING_SYSTEM_LDB: - os.environ['LDB_MODULES_PATH'] = os.path.abspath(os.path.join(env.cwd, 'bin/modules/ldb')) + os.environ['LDB_MODULES_PATH'] = os.path.abspath( + os.path.join(*(env.cwd + ['bin/modules/ldb']))) # tell build system where to find config.h os.environ['CONFIG_H'] = 'bin/default/include/config.h'