Modify the structure to be installable via pip.

This commit is contained in:
Dr.Lt.Data
2025-03-19 21:56:17 +09:00
committed by bymyself
parent 208ca31836
commit 42e8a959dd
43 changed files with 282 additions and 802 deletions

View File

@@ -0,0 +1,17 @@
import os
import logging
def prestartup():
from . import prestartup_script # noqa: F401
logging.info('[PRE] ComfyUI-Manager')
def start():
logging.info('[START] ComfyUI-Manager')
from .glob import manager_server # noqa: F401
from .glob import share_3rdparty # noqa: F401
from .glob import cm_global # noqa: F401
if os.environ.get('ENABLE_LEGACY_COMFYUI_MANAGER_FRONT', 'false') == 'true':
import nodes
nodes.EXTENSION_WEB_DIRS['comfyui-manager-legacy'] = os.path.join(os.path.dirname(__file__), 'js')