From ff9c30787c1b2cbe6337162876344a3906278575 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Wed, 11 Dec 2024 23:22:13 +0900 Subject: [PATCH] Robustly remove legacy subpack directories. --- install.py | 5 +++++ modules/impact/config.py | 2 +- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index 3fac621f..7ebf1983 100644 --- a/install.py +++ b/install.py @@ -113,6 +113,11 @@ def install(): if os.path.exists(subpack_path): shutil.rmtree(subpack_path) print(f"Legacy subpack is detected. '{subpack_path}' is removed.") + + subpack_path = os.path.join(os.path.dirname(__file__), 'subpack') + if os.path.exists(subpack_path): + shutil.rmtree(subpack_path) + print(f"Legacy subpack is detected. '{subpack_path}' is removed.") install() diff --git a/modules/impact/config.py b/modules/impact/config.py index c529cbcf..a1bfc7c4 100644 --- a/modules/impact/config.py +++ b/modules/impact/config.py @@ -1,7 +1,7 @@ import configparser import os -version_code = [8, 0] +version_code = [8, 0, 1] version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') dependency_version = 24 diff --git a/pyproject.toml b/pyproject.toml index f07b1449..12f446c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-impact-pack" description = "This node pack offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler." -version = "8.0" +version = "8.0.1" license = { file = "LICENSE.txt" } dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]