-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path__init__.py
More file actions
26 lines (21 loc) · 1.12 KB
/
__init__.py
File metadata and controls
26 lines (21 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import os, shutil
import folder_paths
from .SequentialImageLoader import LoadImagesFromDirInpaint
from .SequentialImageLoader import LoadImagesFromFileInpaint
NODE_CLASS_MAPPINGS = {
"VFrame Loader With Mask Editor" : LoadImagesFromDirInpaint,
"Video Loader With Mask Editor" : LoadImagesFromFileInpaint
}
NODE_DISPLAY_NAME_MAPPINGS = {
"VFrame Loader With Mask Editor" : "SequentialImageLoader",
"Video Loader With Mask Editor" : "VideoFrameExtractor",
}
WEB_DIRECTORY = "./js"
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', "WEB_DIRECTORY"]
# keep this for backward compatibility for a while..
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", "SequentialImageLoader")
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)