[GH-ISSUE #8] use config_parser to read project name #5

Closed
opened 2026-10-26 22:08:19 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @jtydhr88 on GitHub (Jun 4, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-React-Extension-Template/issues/8

as https://github.com/comfyanonymous/ComfyUI/pull/8357 merged, we should use

from comfy_config import config_parser
custom_node_dir = os.path.dirname(os.path.realpath(__file__))
project_config = config_parser.extract_node_configuration(custom_node_dir)
print(project_config.project.name)  # name from pyproject.toml

to get project name then
nodes.EXTENSION_WEB_DIRS[project_config.project.name] = js_dir

Originally created by @jtydhr88 on GitHub (Jun 4, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-React-Extension-Template/issues/8 as https://github.com/comfyanonymous/ComfyUI/pull/8357 merged, we should use ``` from comfy_config import config_parser custom_node_dir = os.path.dirname(os.path.realpath(__file__)) project_config = config_parser.extract_node_configuration(custom_node_dir) print(project_config.project.name) # name from pyproject.toml ``` to get project name then `nodes.EXTENSION_WEB_DIRS[project_config.project.name] = js_dir `
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-React-Extension-Template#5
No description provided.