(file_path=None, force_rebuild=True)
| 773 | |
| 774 | |
| 775 | def generate_ast_template(file_path=None, force_rebuild=True): |
| 776 | index = load_index(force_rebuild=force_rebuild) |
| 777 | if file_path is None: |
| 778 | local_path = p.resolve().parents[0] |
| 779 | file_path = os.path.join(local_path, TEMPLATE_FILE) |
| 780 | _save_index(index, file_path, with_template=True) |
| 781 | if not os.path.exists(file_path): |
| 782 | raise Exception( |
| 783 | 'The index file is not create correctly, please double check') |
| 784 | return index |
| 785 | |
| 786 | |
| 787 | if __name__ == '__main__': |
searching dependent graphs…