'Write the given list of lines to a text file and return the absolute
path to it.'

def makeSourceFile(self, sourceLines):

    script = _asFilesystemBytes(self.mktemp())
    with open(script, 'wt') as scriptFile:
        scriptFile.write((os.linesep.join(sourceLines) + os.linesep))
    return os.path.abspath(script)
