From 4072abfb81753d3831cf8d797c39c190f9c3c43e Mon Sep 17 00:00:00 2001 From: Arnaud-D <35631001+Arnaud-D@users.noreply.github.com> Date: Sat, 9 Dec 2023 19:31:49 +0100 Subject: [PATCH] Corrige les noms --- ...{convert_smileys_to_svg.py => convert_smileys_to_png.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename scripts/{convert_smileys_to_svg.py => convert_smileys_to_png.py} (87%) diff --git a/scripts/convert_smileys_to_svg.py b/scripts/convert_smileys_to_png.py similarity index 87% rename from scripts/convert_smileys_to_svg.py rename to scripts/convert_smileys_to_png.py index c85ca177a8..668d583573 100644 --- a/scripts/convert_smileys_to_svg.py +++ b/scripts/convert_smileys_to_png.py @@ -5,11 +5,11 @@ import cairosvg -def convert_folder_to_svg(src_folder: pathlib.Path, dst_folder: pathlib.Path) -> int: +def convert_folder_to_png(src_folder: pathlib.Path, dst_folder: pathlib.Path) -> int: """ Convert all SVGs from src_folder into PNGs and write them in dst_folder. Create dst_folder if needed. - Existing files in dst_fodler are overwritten. + Existing files in dst_folder are overwritten. Return the number of converted files. """ src_files = src_folder.rglob("*.svg") @@ -42,5 +42,5 @@ def get_cli_args(): if __name__ == "__main__": args = get_cli_args() - file_count = convert_folder_to_svg(args["source"], args["destination"]) + file_count = convert_folder_to_png(args["source"], args["destination"]) print(f"{__file__}: {file_count} files converted.")