support pip comfyui-manager

This commit is contained in:
Dr.Lt.Data 2025-03-19 22:24:04 +09:00
parent 3b19fc76e3
commit 6897a1d077
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ from app.logger import setup_logger
import itertools
import utils.extra_config
import logging
import comfyui_manager
if __name__ == "__main__":
#NOTE: These do not do anything on core ComfyUI which should already have no communication with the internet, they are for custom nodes.
@ -69,6 +70,8 @@ def execute_prestartup_script():
if args.disable_all_custom_nodes:
return
comfyui_manager.prestartup()
node_paths = folder_paths.get_folder_paths("custom_nodes")
for custom_node_path in node_paths:
possible_modules = os.listdir(custom_node_path)
@ -261,6 +264,7 @@ def start_comfyui(asyncio_loop=None):
prompt_server = server.PromptServer(asyncio_loop)
q = execution.PromptQueue(prompt_server)
comfyui_manager.start()
nodes.init_extra_nodes(init_custom_nodes=not args.disable_all_custom_nodes)
cuda_malloc_warning()

View File

@ -37,6 +37,7 @@ import importlib
import folder_paths
import latent_preview
import node_helpers
import comfyui_manager
def before_node_execution():
comfy.model_management.throw_exception_if_processing_interrupted()