Merge pull request #7197 from mcmonkey4eva/fix-ti-symlinks

allow symlinks in the textual inversion embeddings folder
This commit is contained in:
AUTOMATIC1111 2023-01-25 22:59:12 +03:00 committed by GitHub
commit 3cead6983e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,7 @@ class EmbeddingDatabase:
if not os.path.isdir(embdir.path): if not os.path.isdir(embdir.path):
return return
for root, dirs, fns in os.walk(embdir.path): for root, dirs, fns in os.walk(embdir.path, followlinks=True):
for fn in fns: for fn in fns:
try: try:
fullfn = os.path.join(root, fn) fullfn = os.path.join(root, fn)