fix error msgs; fix floats handling
This commit is contained in:
+10
-5
@@ -1,6 +1,12 @@
|
||||
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
||||
from .nodes import YARS, YARSAdv
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {"YARS": YARS, "YARSAdv": YARSAdv}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"YARS": "yaResolution Selector",
|
||||
"YARSAdv": "yaResolution Selector (Advanced)",
|
||||
}
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|
||||
|
||||
# --------------------------- Install web extension ----------------------------
|
||||
import shutil
|
||||
@@ -14,12 +20,11 @@ script_path = node_dir / "js" / "quickNodes.js"
|
||||
destination_dir = comfy_dir / "web" / "extensions" / "tropfchen"
|
||||
destination_path = destination_dir / "yarsQuickNodes.js"
|
||||
|
||||
ER = "during installing Embedding Picker web extension"
|
||||
try:
|
||||
destination_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
shutil.copy2(script_path, destination_path)
|
||||
except PermissionError as permission_error:
|
||||
print(f"Permission error {ER}: {permission_error}")
|
||||
print(f"Permission error: {permission_error}")
|
||||
except Exception as e:
|
||||
print(f"An unexpected error occurred {ER}: {e}")
|
||||
print(f"An unexpected error occurred: {e}")
|
||||
|
||||
Reference in New Issue
Block a user