Unverified Commit 3cead698 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

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

allow symlinks in the textual inversion embeddings folder
parents a85e22a1 e179b609
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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)