aboutsummaryrefslogtreecommitdiff
path: root/extensions-builtin/Lora/preload.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-18 20:11:30 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-18 20:11:30 +0300
commit136c8859a49a35cbffe269aafc0bbdfca0b3561d (patch)
tree14371834a27a24050555f632fe80d69d16bccdb4 /extensions-builtin/Lora/preload.py
parenteb7c9b58fc2fbab205d4bc9f708800870dcda3fb (diff)
add backwards compatibility --lyco-dir-backcompat option, use that for LyCORIS directory instead of hardcoded value
prevent running preload.py for disabled extensions
Diffstat (limited to 'extensions-builtin/Lora/preload.py')
-rw-r--r--extensions-builtin/Lora/preload.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions-builtin/Lora/preload.py b/extensions-builtin/Lora/preload.py
index 863dc5c0..50961be3 100644
--- a/extensions-builtin/Lora/preload.py
+++ b/extensions-builtin/Lora/preload.py
@@ -4,3 +4,4 @@ from modules import paths
def preload(parser):
parser.add_argument("--lora-dir", type=str, help="Path to directory with Lora networks.", default=os.path.join(paths.models_path, 'Lora'))
+ parser.add_argument("--lyco-dir-backcompat", type=str, help="Path to directory with LyCORIS networks (for backawards compatibility; can also use --lyco-dir).", default=os.path.join(paths.models_path, 'LyCORIS'))