File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1111
1212import black
1313
14-
14+ # Add current directory to Python path
15+ sys .path .insert (0 , os .path .dirname (os .path .abspath (__file__ )))
1516from comfyui_to_python_utils import (
1617 import_custom_nodes ,
1718 find_path ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ def import_custom_nodes() -> None:
1212 import asyncio
1313 import execution
1414 from nodes import init_extra_nodes
15+ sys .path .insert (0 , find_path ("ComfyUI" ))
1516 import server
1617
1718 # Creating a new event loop and setting it as the default loop
@@ -23,7 +24,7 @@ def import_custom_nodes() -> None:
2324 execution .PromptQueue (server_instance )
2425
2526 # Initializing custom nodes
26- init_extra_nodes ()
27+ asyncio . run ( init_extra_nodes () )
2728
2829
2930def find_path (name : str , path : str = None ) -> str :
You can’t perform that action at this time.
0 commit comments