Fix Embedding Dir not working

This commit is contained in:
blessedcoolant 2022-12-06 12:38:46 +13:00 committed by Lincoln Stein
parent 44a0055571
commit 1d1988683b

View File

@ -68,6 +68,8 @@ def main():
if opt.embeddings:
if not os.path.isabs(opt.embedding_path):
embedding_path = os.path.normpath(os.path.join(Globals.root,opt.embedding_path))
else:
embedding_path = opt.embedding_path
else:
embedding_path = None