Attempt to use the build-in Lora.networks Lora/LyCORIS models lists (#255)

This commit is contained in:
Mike
2023-12-10 16:20:51 -05:00
committed by GitHub
parent f1870b7e87
commit 837dc39811
2 changed files with 67 additions and 6 deletions

View File

@@ -30,7 +30,10 @@ except AttributeError:
LORA_PATH = None
try:
LYCO_PATH = Path(shared.cmd_opts.lyco_dir_backcompat)
try:
LYCO_PATH = Path(shared.cmd_opts.lyco_dir_backcompat)
except:
LYCO_PATH = Path(shared.cmd_opts.lyco_dir) # attempt original non-backcompat path
except AttributeError:
LYCO_PATH = None