18 lines
841 B
Python
18 lines
841 B
Python
import os, shutil
|
|
import folder_paths
|
|
from .AnimateDiffInpaint import LoadImagesFromDirInpaint
|
|
|
|
|
|
NODE_CLASS_MAPPINGS = { "VFrame Loader With Mask Editor" : LoadImagesFromDirInpaint }
|
|
NODE_DISPLAY_NAME_MAPPINGS = { "VFrame Loader With Mask Editor" : "AnimateDiffInpaint" }
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|
|
|
|
|
|
module_js_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "js")
|
|
application_root_directory = os.path.dirname(folder_paths.__file__)
|
|
application_web_extensions_directory = os.path.join(application_root_directory, "web", "extensions", "AnimateDiffInpaint")
|
|
|
|
if os.path.exists(application_web_extensions_directory):
|
|
shutil.rmtree(application_web_extensions_directory)
|
|
shutil.copytree(module_js_directory, application_web_extensions_directory, dirs_exist_ok=True)
|