def _write_docs(module_list, output_dir):
for module_meta in module_list:<EOL><INDENT>directory = module_meta['<STR_LIT>']<EOL>if directory and not path.isdir(directory):<EOL><INDENT>makedirs(directory)<EOL><DEDENT>file = open(module_meta['<STR_LIT>'], '<STR_LIT:w>')<EOL>file.write(module_meta['<STR_LIT:content>'])<EOL>file.close()<EOL><DEDENT>
Write the document meta to our output location.