From 458456e464ffa53baea5ad5efe84f8345305f135 Mon Sep 17 00:00:00 2001 From: chflame163 Date: Mon, 4 Nov 2024 14:02:05 +0800 Subject: [PATCH] fix bug of make js files folder --- __init__.py | 12 ++++++------ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/__init__.py b/__init__.py index 6ead716..fd6efed 100644 --- a/__init__.py +++ b/__init__.py @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 5a29ee3..6e08cd8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]