Skip to content

Commit 9bc5b30

Browse files
committed
Corrige les noms
1 parent 26bb614 commit 9bc5b30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function images() {
177177
// Generate PNG versions of SVG smileys.
178178
// Output files are not optimized for size.
179179
function convertSmileysToPng() {
180-
const pathToScript = 'scripts/convert_smileys_to_svg.py'
180+
const pathToScript = 'scripts/convert_smileys_to_png.py'
181181
const pathToSvgSmileys = 'assets/smileys/svg/'
182182
const pathToPngSmileys = 'dist/smileys/png'
183183
const convertToPng = run(`python ${pathToScript} ${pathToSvgSmileys} ${pathToPngSmileys}`)

scripts/convert_smileys_to_svg.py renamed to scripts/convert_smileys_to_png.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
import cairosvg
1717

1818

19-
def convert_folder_to_svg(src_folder: pathlib.Path, dst_folder: pathlib.Path) -> int:
19+
def convert_folder_to_png(src_folder: pathlib.Path, dst_folder: pathlib.Path) -> int:
2020
"""
2121
Convert all SVGs from src_folder into PNGs and write them in dst_folder.
2222
Create dst_folder if needed.
23-
Existing files in dst_fodler are overwritten.
23+
Existing files in dst_folder are overwritten.
2424
Return the number of converted files.
2525
"""
2626
src_files = src_folder.rglob("*.svg")
@@ -53,5 +53,5 @@ def get_cli_args():
5353

5454
if __name__ == "__main__":
5555
args = get_cli_args()
56-
file_count = convert_folder_to_svg(args["source"], args["destination"])
56+
file_count = convert_folder_to_png(args["source"], args["destination"])
5757
print(f"{__file__}: {file_count} files converted.")

0 commit comments

Comments
 (0)