Add a magic $LORA$ wildcard now that there's filtering
This commit is contained in:
+3
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user