Download __init__.py from data-archetype/dflow_2b: direct link, hf CLI and curl.
- Browser
- Download file 654 Bytes
-
https://huggingface.co/data-archetype/dflow_2b/resolve/main/__init__.py
- Command line
-
hf download hf://data-archetype/dflow_2b/__init__.py
-
curl -L -o __init__.py https://huggingface.co/data-archetype/dflow_2b/resolve/main/__init__.py
654 Bytes
| # SPDX-License-Identifier: GPL-3.0-only | |
| # Copyright 2026 Data Archetype | |
| """ComfyUI entry point of the dflow_2b repository (installed as its root | |
| ``__init__.py``). | |
| ComfyUI imports the repository folder as a package and reads | |
| ``NODE_CLASS_MAPPINGS``, ``NODE_DISPLAY_NAME_MAPPINGS`` and ``WEB_DIRECTORY``. | |
| Outside a package (a pip build, or a test run collecting this file) nothing | |
| is imported, so ``comfy`` is never required there. | |
| """ | |
| if __package__: | |
| from .comfyui.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS | |
| WEB_DIRECTORY = "./comfyui/web" | |
| __all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"] | |