Skip to content

Commit fc76d34

Browse files
committed
Update comfyui_to_python_utils.py
1 parent a0f665c commit fc76d34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

comfyui_to_python_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,9 @@ def save_images(self, images, filename_prefix="ComfyUI", prompt=None, extra_pngi
161161
if os.path.isdir(args.output):
162162
subfolder = args.output
163163
file = "output"
164-
elif os.pathsep in args.output:
165-
subfolder, file = os.path.split(args.output)
166164
else:
167-
file = args.output
165+
subfolder, file = os.path.split(args.output)
166+
168167
if subfolder == "":
169168
subfolder = os.getcwd()
170169

@@ -179,6 +178,7 @@ def save_images(self, images, filename_prefix="ComfyUI", prompt=None, extra_pngi
179178
break
180179

181180
img.save(os.path.join(subfolder, file), pnginfo=metadata, compress_level=self.compress_level)
181+
print("Saved image to", os.path.join(subfolder, file))
182182
results.append({
183183
"filename": file,
184184
"subfolder": subfolder,

0 commit comments

Comments
 (0)