From 9ebdff5261ba3301cff8f323893b32db376eedc4 Mon Sep 17 00:00:00 2001 From: phthallo <84078890+phthallo@users.noreply.github.com> Date: Fri, 5 Jul 2024 20:58:28 +0930 Subject: [PATCH] fix: rmeove svg after generation of png --- src/pyflagoras/pyflagoras.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyflagoras/pyflagoras.py b/src/pyflagoras/pyflagoras.py index a3a8975..9006601 100644 --- a/src/pyflagoras/pyflagoras.py +++ b/src/pyflagoras/pyflagoras.py @@ -102,6 +102,7 @@ def run(self): png = (fitz.open(f"{self.name}.pdf")[0]).get_pixmap() png.save(f"{self.name}.png") os.remove(f"{self.name}.pdf") + os.remove(f"{self.name}.svg") print(f"🏳️‍🌈 Generated {flag_attributes['name']} ({flag_attributes['id']}) flag from {Path(self.image).name} as {self.name}.png!")