Spaces:
Running
Running
File size: 1,319 Bytes
681fa96 |
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 27 28 29 30 31 |
from .use_everywhere import SeedEverywhere, AnythingEverywherePrompts
UE_VERSION = "5.0.6"
NODE_CLASS_MAPPINGS = { "Seed Everywhere": SeedEverywhere }
from .use_everywhere import AnythingEverywhere, AnythingSomewhere, AnythingEverywhereTriplet, SimpleString
NODE_CLASS_MAPPINGS["Anything Everywhere"] = AnythingEverywhere
NODE_CLASS_MAPPINGS["Anything Everywhere3"] = AnythingEverywhereTriplet
NODE_CLASS_MAPPINGS["Anything Everywhere?"] = AnythingSomewhere
NODE_CLASS_MAPPINGS["Prompts Everywhere"] = AnythingEverywherePrompts
NODE_CLASS_MAPPINGS["Simple String"] = SimpleString
import os, shutil
import folder_paths
# temporary code to remove old javascript installs
module_js_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "js")
application_root_directory = os.path.dirname(folder_paths.__file__)
old_code_location = os.path.join(application_root_directory, "web", "extensions", "use_everywhere")
if os.path.exists(old_code_location):
shutil.rmtree(old_code_location)
old_code_location = os.path.join(application_root_directory, "web", "extensions", "cg-nodes", "use_everywhere.js")
if os.path.exists(old_code_location):
os.remove(old_code_location)
# end of temporary code
WEB_DIRECTORY = "./js"
__all__ = ["NODE_CLASS_MAPPINGS", "WEB_DIRECTORY"]
|