Fix SDNext ModernUI by following the cursor (#327)

This commit is contained in:
Disty0
2025-05-05 21:44:51 +03:00
committed by GitHub
parent 41d185b616
commit 34e68e1628
3 changed files with 19 additions and 6 deletions

View File

@@ -20,7 +20,10 @@ except ImportError:
TAGS_PATH = Path(scripts.basedir()).joinpath("tags").absolute()
# The path to the folder containing the wildcards and embeddings
WILDCARD_PATH = FILE_DIR.joinpath("scripts/wildcards").absolute()
try: # SD.Next
WILDCARD_PATH = Path(shared.opts.wildcards_dir).absolute()
except Exception: # A1111
WILDCARD_PATH = FILE_DIR.joinpath("scripts/wildcards").absolute()
EMB_PATH = Path(shared.cmd_opts.embeddings_dir).absolute()
# Forge Classic detection