Files
ltdrdata-ComfyUI-Impact-Pack/__init__.py
T
ltdrdata 4c393c3537 Change structure of custom node.
* single file -> git clone

Add FaceDetailer, FaceDetailerPipe node.
2023-04-30 15:57:04 +09:00

21 lines
512 B
Python

import shutil
import folder_paths
import os, sys, subprocess
# ensure .js
print("### Loading: ComfyUI-Impact-Pack")
comfy_path = os.path.dirname(folder_paths.__file__)
def setup_js():
impact_path = os.path.dirname(__file__)
js_dest_path = os.path.join(comfy_path, "web", "extensions", "core")
js_src_path = os.path.join(impact_path, "js", "impact-pack.js")
shutil.copy(js_src_path, js_dest_path)
setup_js()
from .impact_pack import NODE_CLASS_MAPPINGS
__all__ = ['NODE_CLASS_MAPPINGS']