Skip to content

Commit

Permalink
修复upscayl-bin和realesrgan-ncnn-vulkan的编码问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TransparentLC committed May 27, 2024
1 parent 2f41377 commit 7dcdae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def run(self) -> None:
cmd,
stderr=subprocess.PIPE,
universal_newlines=True,
encoding='utf-8',
encoding='utf-8' if os.path.splitext(os.path.split(define.RE_PATH)[1])[0] == 'upscayl-bin' else None,
creationflags=subprocess.CREATE_NO_WINDOW if os.name == 'nt' else 0,
) as p:
for line in p.stderr:
Expand Down

0 comments on commit 7dcdae0

Please sign in to comment.