From d6eb751e4bdcb0fbc6bd4d53c65eab689431c6a1 Mon Sep 17 00:00:00 2001 From: MMaker Date: Thu, 17 Nov 2022 12:13:43 -0500 Subject: [PATCH] fix: Use correct embeddings dir Use the `--embeddings-dir` if specified --- scripts/tag_autocomplete_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tag_autocomplete_helper.py b/scripts/tag_autocomplete_helper.py index e4e5dcd..5a5e043 100644 --- a/scripts/tag_autocomplete_helper.py +++ b/scripts/tag_autocomplete_helper.py @@ -2,7 +2,7 @@ # to a temporary file to expose it to the javascript side from pathlib import Path -from modules import scripts +from modules import scripts, shared # Webui root path FILE_DIR = Path().absolute() @@ -15,7 +15,7 @@ TAGS_PATH = Path(scripts.basedir()).joinpath('tags') # The path to the folder containing the wildcards and embeddings WILDCARD_PATH = FILE_DIR.joinpath('scripts/wildcards') -EMB_PATH = FILE_DIR.joinpath('embeddings') +EMB_PATH = Path(shared.cmd_opts.embeddings_dir) def find_ext_wildcard_paths():