test: add missing splat

The parameter here is a list, not a string.  Ensure that the we splat the list
into arguments prior to invoke os.path.join.  This would previously fail with a
`startswith` is not a member of `list`.

llvm-svn: 269627
This commit is contained in:
Saleem Abdulrasool 2016-05-16 03:13:08 +00:00
parent 81eadde6ca
commit c0d0e36197
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ def setupSysPath():
python_resource_dir = ['LLDB.framework', 'Resources', 'Python']
outputPaths = getXcodeOutputPaths(lldbRootDirectory)
for outputPath in outputPaths:
candidatePath = os.path.join(outputPath, python_resource_dir)
candidatePath = os.path.join(outputPath, *python_resource_dir)
if os.path.isfile(os.path.join(candidatePath, init_in_python_dir)):
lldbPythonDir = candidatePath
break