This commit is contained in:
justumen
2025-02-18 17:20:00 +01:00
parent 17bef1dffd
commit 48570fd2e3
2 changed files with 10 additions and 10 deletions

View File

@@ -41,8 +41,8 @@ image_folders = {
"lora_pony": os.path.join(civitai_base_path, "lora_pony"),
"lora_flux.1_d": os.path.join(civitai_base_path, "lora_flux.1_d"),
"lora_hunyuan_video": os.path.join(civitai_base_path, "lora_hunyuan_video"),
"NSFW_lora_hunyuan_video": os.path.join(civitai_base_path, "NSFW_lora_hunyuan_video")
}
# "NSFW_lora_hunyuan_video": os.path.join(civitai_base_path, "NSFW_lora_hunyuan_video")
# Add folder paths for each image folder
for folder_name, folder_path in image_folders.items():
@@ -53,14 +53,14 @@ for folder_name, folder_path in image_folders.items():
# Create link if it doesn't exist
if not os.path.exists(target_path):
try:
if os.name == 'nt': # Windows
os.system(f'mklink /J "{target_path}" "{folder_path}"')
else: # Unix-like
os.symlink(folder_path, target_path)
print(f"Successfully created link from {folder_path} to {target_path}")
except OSError as e:
print(f"Failed to create link: {e}")
# try:
if os.name == 'nt': # Windows
os.system(f'mklink /J "{target_path}" "{folder_path}"')
else: # Unix-like
os.symlink(folder_path, target_path)
#print(f"Successfully created link from {folder_path} to {target_path}")
# except OSError as e:
# print(f"Failed to create link: {e}")
# Prepare Loras
# lora_images_path = os.path.join(custom_nodes_dir, "ComfyUI", "custom_nodes", "Bjornulf_custom_nodes", "civitai", "lora_images")

View File

@@ -1,7 +1,7 @@
[project]
name = "bjornulf_custom_nodes"
description = "133 ComfyUI nodes : Display, manipulate, and edit text, images, videos, loras, generate characters and more. Manage looping operations, generate randomized content, use logical conditions and work with external AI tools, like Ollama or Text To Speech Kokoro, etc..."
version = "0.71"
version = "0.72"
license = {file = "LICENSE"}
[project.urls]