Describe function here.
def WriteTextFile(filename,content): if not isinstance(content, str): content="\n".join(content)+"\n" CreateDirectory(os.path.dirname(os.path.realpath(filename))) file = open(filename,"wt") file.write(content) file.close()