mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
support uninstall.py script when git-clone uninstall
update DB
This commit is contained in:
parent
e95cd88dd0
commit
0dc903ac04
10
__init__.py
10
__init__.py
@ -16,7 +16,7 @@ sys.path.append('../..')
|
|||||||
from torchvision.datasets.utils import download_url
|
from torchvision.datasets.utils import download_url
|
||||||
|
|
||||||
# ensure .js
|
# ensure .js
|
||||||
print("### Loading: ComfyUI-Manager (V0.9)")
|
print("### Loading: ComfyUI-Manager (V0.10)")
|
||||||
|
|
||||||
comfy_path = os.path.dirname(folder_paths.__file__)
|
comfy_path = os.path.dirname(folder_paths.__file__)
|
||||||
custom_nodes_path = os.path.join(comfy_path, 'custom_nodes')
|
custom_nodes_path = os.path.join(comfy_path, 'custom_nodes')
|
||||||
@ -550,6 +550,14 @@ def gitclone_uninstall(files):
|
|||||||
print(f"Uninstall(git-clone) error: invalid path '{dir_path}' for '{url}'")
|
print(f"Uninstall(git-clone) error: invalid path '{dir_path}' for '{url}'")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
install_script_path = os.path.join(dir_path, "uninstall.py")
|
||||||
|
if os.path.exists(install_script_path):
|
||||||
|
uninstall_cmd = [sys.executable, "uninstall.py"]
|
||||||
|
code = subprocess.run(uninstall_cmd, cwd=dir_path)
|
||||||
|
|
||||||
|
if code.returncode != 0:
|
||||||
|
print(f"An error occurred during the execution of the uninstall.py script. Only the '{dir_path}' will be deleted.")
|
||||||
|
|
||||||
if os.path.exists(dir_path):
|
if os.path.exists(dir_path):
|
||||||
rmtree(dir_path)
|
rmtree(dir_path)
|
||||||
elif os.path.exists(dir_path + ".disabled"):
|
elif os.path.exists(dir_path + ".disabled"):
|
||||||
|
|||||||
@ -465,6 +465,16 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "ComfyUI nodes for the Ultimate Stable Diffusion Upscale script by Coyote-A."
|
"description": "ComfyUI nodes for the Ultimate Stable Diffusion Upscale script by Coyote-A."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"author": "ssitu",
|
||||||
|
"title": "NestedNodeBuilder",
|
||||||
|
"reference": "https://github.com/ssitu/ComfyUI_NestedNodeBuilder",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/ssitu/ComfyUI_NestedNodeBuilder"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "This extension provides the ability to combine multiple nodes into a single node."
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"author": "space-nuko",
|
"author": "space-nuko",
|
||||||
"title": "Disco Diffusion",
|
"title": "Disco Diffusion",
|
||||||
@ -578,7 +588,7 @@
|
|||||||
{
|
{
|
||||||
"author": "ailex000",
|
"author": "ailex000",
|
||||||
"title": "Image Gallery",
|
"title": "Image Gallery",
|
||||||
"reference": "https://github.com/AlekPet/comfyui_translate_clip_text_encode_node",
|
"reference": "https://github.com/ailex000/ComfyUI-Extensions",
|
||||||
"js_path": "image-gallery",
|
"js_path": "image-gallery",
|
||||||
"files": [
|
"files": [
|
||||||
"https://github.com/ailex000/ComfyUI-Extensions/raw/main/image-gallery/imageGallery.js"
|
"https://github.com/ailex000/ComfyUI-Extensions/raw/main/image-gallery/imageGallery.js"
|
||||||
|
|||||||
@ -191,6 +191,8 @@
|
|||||||
"Lerp",
|
"Lerp",
|
||||||
"PromptSchedule",
|
"PromptSchedule",
|
||||||
"PromptScheduleGLIGEN",
|
"PromptScheduleGLIGEN",
|
||||||
|
"PromptScheduleNodeFlow",
|
||||||
|
"PromptScheduleNodeFlowEnd",
|
||||||
"SawtoothWave",
|
"SawtoothWave",
|
||||||
"SinWave",
|
"SinWave",
|
||||||
"SquareWave",
|
"SquareWave",
|
||||||
@ -289,6 +291,7 @@
|
|||||||
"ImageDrawRectangleRoundedByContainer",
|
"ImageDrawRectangleRoundedByContainer",
|
||||||
"ImageEffectsAdjustment",
|
"ImageEffectsAdjustment",
|
||||||
"ImageEffectsGrayscale",
|
"ImageEffectsGrayscale",
|
||||||
|
"ImageEffectsLensBokeh",
|
||||||
"ImageEffectsLensChromaticAberration",
|
"ImageEffectsLensChromaticAberration",
|
||||||
"ImageEffectsLensOpticAxis",
|
"ImageEffectsLensOpticAxis",
|
||||||
"ImageEffectsLensVignette",
|
"ImageEffectsLensVignette",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user