def concat_docs():
    'Concatinates files yielded by the generator `find_docs`.'
    file_path = os.path.dirname(os.path.realpath(__file__))
    (head, tail) = os.path.split(file_path)
    outfile = (head + '/README.rst')
    if (not os.path.isfile(outfile)):
        print('../README.rst not found, exiting!')
        exit(1)
    with open(outfile, 'w') as readme_handle:
        readme_handle.write(repository_tags)
        for doc in find_docs():
            with open(doc, 'r') as doc_handle:
                for line in doc_handle:
                    readme_handle.write(line)
                readme_handle.write('\n')
Concatinates files yielded by the generator `find_docs`.
def concat_docs():
    
    file_path = os.path.dirname(os.path.realpath(__file__))
    (head, tail) = os.path.split(file_path)
    outfile = (head + '/README.rst')
    if (not os.path.isfile(outfile)):
        print('../README.rst not found, exiting!')
        exit(1)
    with open(outfile, 'w') as readme_handle:
        readme_handle.write(repository_tags)
        for doc in find_docs():
            with open(doc, 'r') as doc_handle:
                for line in doc_handle:
                    readme_handle.write(line)
                readme_handle.write('\n')