diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-17 05:54:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 05:54:06 +0000 |
commit | d70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7 (patch) | |
tree | 6640cefa3dee82d75f998bfc578f88973a388476 /extensions-builtin/Lora | |
parent | 4333ecc43fc6f91301a041702cac9cf7e16967ae (diff) | |
parent | 06ab10a1be812036605e1472f054228562ea08d9 (diff) | |
download | stable-diffusion-webui-gfx803-d70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7.tar.gz stable-diffusion-webui-gfx803-d70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7.tar.bz2 stable-diffusion-webui-gfx803-d70632a7cfbae45dd16b5e7f4fb0ee6e2eb73fa7.zip |
Merge pull request #14934 from AUTOMATIC1111/fix/normalize-cmd-arg-paths
Normalize command-line argument paths
Diffstat (limited to 'extensions-builtin/Lora')
-rw-r--r-- | extensions-builtin/Lora/preload.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions-builtin/Lora/preload.py b/extensions-builtin/Lora/preload.py index 50961be3..52fab29b 100644 --- a/extensions-builtin/Lora/preload.py +++ b/extensions-builtin/Lora/preload.py @@ -1,7 +1,8 @@ import os
from modules import paths
+from modules.paths_internal import normalized_filepath
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'))
+ parser.add_argument("--lora-dir", type=normalized_filepath, help="Path to directory with Lora networks.", default=os.path.join(paths.models_path, 'Lora'))
+ parser.add_argument("--lyco-dir-backcompat", type=normalized_filepath, help="Path to directory with LyCORIS networks (for backawards compatibility; can also use --lyco-dir).", default=os.path.join(paths.models_path, 'LyCORIS'))
|