(file_path=None)
| 762 | |
| 763 | |
| 764 | def load_from_prebuilt(file_path=None): |
| 765 | if file_path is None: |
| 766 | local_path = p.resolve().parents[0] |
| 767 | file_path = os.path.join(local_path, TEMPLATE_FILE) |
| 768 | if os.path.exists(file_path): |
| 769 | index = _load_index(file_path, with_template=True) |
| 770 | else: |
| 771 | index = generate_ast_template() |
| 772 | return index |
| 773 | |
| 774 | |
| 775 | def generate_ast_template(file_path=None, force_rebuild=True): |
searching dependent graphs…