Update __init__.py

This commit is contained in:
Chris
2024-04-10 11:08:23 +10:00
parent 6d1db0392e
commit 87dc1fe423
+3 -10
View File
@@ -5,7 +5,7 @@ from .prompt_info import *
NODE_CLASS_MAPPINGS= {}
NODE_DISPLAY_NAME_MAPPINGS = {}
VERSION = "1.0.0"
VERSION = "1.0.1"
def pretty(name:str):
return " ".join(re.findall("[A-Z][a-z]*", name))
@@ -15,14 +15,7 @@ for clazz in CLAZZES:
NODE_CLASS_MAPPINGS[name] = clazz
NODE_DISPLAY_NAME_MAPPINGS[name] = pretty(name)
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
WEB_DIRECTORY = "./js"
import shutil
import folder_paths
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', "WEB_DIRECTORY"]
application_root_directory = os.path.dirname(folder_paths.__file__)
application_web_extensions_directory = os.path.join(application_root_directory, "web", "extensions", "cg_prompt_info")
module_root_directory = os.path.dirname(os.path.realpath(__file__))
module_js_directory = os.path.join(module_root_directory, "js")
shutil.copytree(module_js_directory, application_web_extensions_directory, dirs_exist_ok=True)