From cba7f9fb552e75e91a511b41c305c9e4454a5f0e Mon Sep 17 00:00:00 2001 From: Sidney Zhang Date: Thu, 18 Jun 2026 17:04:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=A7=A3=E6=9E=90=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E4=BD=BF=E7=94=A8=20resolve()=20=E5=A4=84?= =?UTF-8?q?=E7=90=86=20saveto=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pptopic/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pptopic/lib.py b/src/pptopic/lib.py index 6775860..65cad97 100644 --- a/src/pptopic/lib.py +++ b/src/pptopic/lib.py @@ -116,7 +116,7 @@ def PPT_longPic( new_img = img.resize((nwidth, nheight), resample=Image.Resampling.LANCZOS) canvas.paste(new_img, box=(0, (i - 1) * nheight)) - filepath = pptFile.parent if Path(saveto) == Path(".") else Path(saveto) + filepath = Path(saveto).resolve() if saveName: if Path(saveName).suffix: canvas.save(filepath / saveName)