Skip to content

Commit eebfaae

Browse files
committed
fix(runtime): comfyui package not load comfyui-legacy nodes (#68)
1 parent 7994173 commit eebfaae

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "comfy-script"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
description = "A Python frontend and library for ComfyUI"
55
readme = "README.md"
66
# ComfyUI: >=3.8

src/comfy_script/runtime/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,10 @@ def setup_comfyui_polyfills(main_locals: dict = None):
270270
# for name in 'loop', 'server', 'q', 'extra_model_paths_config_path':
271271
# setattr(main, name, main_locals[name])
272272

273+
import comfy.nodes.base_nodes
273274
import comfy.nodes.common
274275
nodes = types.ModuleType('nodes')
276+
nodes.__dict__.update(comfy.nodes.base_nodes.__dict__)
275277
exported_nodes = getattr(server, 'nodes', None)
276278
if exported_nodes is None:
277279
exported_nodes = comfy.cmd.server.nodes
@@ -383,6 +385,8 @@ def enable_args_parsing_hook():
383385
else:
384386
main.main()
385387
del main.exit
388+
389+
main.init_custom_nodes()
386390

387391
asyncio.get_event_loop_policy().set_event_loop(original_loop)
388392

0 commit comments

Comments
 (0)