windows path fix

This commit is contained in:
chibiace
2025-03-19 00:12:47 +13:00
parent b1dd86ee72
commit 424d5fc68b
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
2.0.0
2.0.1
+6 -1
View File
@@ -56,7 +56,12 @@ class LoadImageExtended:
def load_image(self, image, vae=None):
image_path = folder_paths.get_annotated_filepath(image)
filename = image_path.rsplit("/", 1)[-1]
# Check if os is windows for backwards paths.
if os.name == "nt":
filename = image_path.rsplit("\\", 1)[-1]
else:
filename = image_path.rsplit("/", 1)[-1]
im = Image.open(image_path)