Skip to content

Commit

Permalink
Update sample __init__.py to showcase save_node_list
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewharp committed Aug 1, 2024
1 parent 74aae6f commit 62717ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ To use this module in your ComfyUI project, follow these steps:
# Export so that ComfyUI can pick them up.
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
# Optional: export the node list to a file so that e.g. ComfyUI-Manager can pick it up.
easy_nodes.save_node_list(os.path.join(os.path.dirname(__file__), "node_list.json"))
```

You can also initialize with auto_register=True, in which case you won't have to do anything else after the import. However, this may be problematic for having your nodes indexed so will default to False in a future update (currently not setting it explicitly will auto-register and complain).
Expand Down

0 comments on commit 62717ce

Please sign in to comment.