add lifecycle scripts
This commit is contained in:
+8
-18
@@ -1,22 +1,12 @@
|
||||
from .wildcard import *
|
||||
"""
|
||||
@author: VanillaCode314
|
||||
@title: Simple Wildcard
|
||||
@nickname: Simple Wildcard
|
||||
@description: A simple wildcard node for ComfyUI. Can also be used a style prompt node.
|
||||
"""
|
||||
|
||||
try:
|
||||
import os, shutil
|
||||
import folder_paths
|
||||
|
||||
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", "vanilla.simple.wildcard"
|
||||
)
|
||||
shutil.copytree(
|
||||
module_js_directory, application_web_extensions_directory, dirs_exist_ok=True
|
||||
)
|
||||
except:
|
||||
pass
|
||||
from .wildcard import Wildcard
|
||||
|
||||
NODE_CLASS_MAPPINGS = {"SimpleWildcard": Wildcard}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {"SimpleWildcard": "Wildcard"}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {"SimpleWildcard": "SimpleWildcard"}
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
try:
|
||||
import os, shutil
|
||||
import folder_paths
|
||||
|
||||
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", "vanilla.simple.wildcard"
|
||||
)
|
||||
shutil.rmtree(application_web_extensions_directory)
|
||||
except:
|
||||
pass
|
||||
@@ -0,0 +1,16 @@
|
||||
try:
|
||||
import os, shutil
|
||||
import folder_paths
|
||||
|
||||
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", "vanilla.simple.wildcard"
|
||||
)
|
||||
shutil.copytree(
|
||||
module_js_directory, application_web_extensions_directory, dirs_exist_ok=True
|
||||
)
|
||||
except:
|
||||
pass
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
try:
|
||||
import os, shutil
|
||||
import folder_paths
|
||||
|
||||
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", "vanilla.simple.wildcard"
|
||||
)
|
||||
shutil.copytree(
|
||||
module_js_directory, application_web_extensions_directory, dirs_exist_ok=True
|
||||
)
|
||||
except:
|
||||
pass
|
||||
@@ -0,0 +1,14 @@
|
||||
try:
|
||||
import os, shutil
|
||||
import folder_paths
|
||||
|
||||
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", "vanilla.simple.wildcard"
|
||||
)
|
||||
shutil.rmtree(application_web_extensions_directory)
|
||||
except:
|
||||
pass
|
||||
Reference in New Issue
Block a user