Add a magic $LORA$ wildcard now that there's filtering

This commit is contained in:
asagi4
2024-02-18 21:57:26 +02:00
parent 9c2c7c7b04
commit 3d04348280
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -8,7 +8,6 @@ import mmap
from .parse import parse
# from .parse import parse
log = logging.getLogger("comfyui-misc-utils")
@@ -188,6 +187,9 @@ class MUSimpleWildcard:
return False
return True
if name == "LORA":
return [l for l in folder_paths.get_filename_list("loras") if matches(l)]
f = (Path(path) / Path(name)).with_suffix(".txt")
try:
with open(f, "r") as file: