Skip to content

Commit

Permalink
fix bug of make js files folder
Browse files Browse the repository at this point in the history
  • Loading branch information
chflame163 committed Nov 4, 2024
1 parent ad8fee9 commit 458456e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
import glob
import os
import sys
import __main__
import filecmp
import shutil
import folder_paths

NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}

python = sys.executable

try:
base_path = os.path.dirname(folder_paths.base_path)
extentions_folder = os.path.join(base_path, "web", "extensions", "dzNodes")
comfy_path = os.path.join(os.path.dirname(os.path.realpath(__main__.__file__)))
extentions_folder = os.path.join(comfy_path, "web", "extensions", "dzNodes")

javascript_folder = os.path.join(os.path.dirname(os.path.realpath(__file__)), "js")
outdate_file_list = ['comfy_shared.js', 'debug.js', 'mtb_widgets.js', 'parse-css.js', 'dz_widgets.js']

if not os.path.exists(extentions_folder):
print('# 😺dzNodes: Making the "web\extensions\dzNodes" folder')
print(f'# 😺dzNodes: Making the "{extentions_folder}" folder')
os.makedirs(extentions_folder, exist_ok=True)
else:
for i in outdate_file_list:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui_layerstyle"
description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress."
version = "1.0.87"
version = "1.0.88"
license = "MIT"
dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "scikit_learn", "opencv-contrib-python", "pymatting", "segment_anything", "timm", "addict", "yapf", "colour-science", "wget", "mediapipe", "loguru", "typer_config", "fastapi", "rich", "google-generativeai", "diffusers", "omegaconf", "tqdm", "transformers", "kornia", "image-reward", "ultralytics", "blend_modes", "blind-watermark", "qrcode", "pyzbar", "transparent-background", "huggingface_hub", "accelerate", "bitsandbytes", "torchscale", "wandb", "hydra-core", "psd-tools", "inference-cli[yolo-world]", "inference-gpu[yolo-world]", "onnxruntime", "peft", "iopath"]

Expand Down

0 comments on commit 458456e

Please sign in to comment.