Skip to content

Commit

Permalink
Corrige les noms
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Dec 9, 2023
1 parent 3ca6392 commit 4072abf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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.")

0 comments on commit 4072abf

Please sign in to comment.