From 0b33d03b73418fc0ecc05bac345f6baee8d01978 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 23 Feb 2025 12:35:45 -0800 Subject: [PATCH] Pass the font folder as part of argv Signed-off-by: Danila Fedorin --- chatgpt-subset-one-go.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chatgpt-subset-one-go.py b/chatgpt-subset-one-go.py index ba93dc8..77e3550 100644 --- a/chatgpt-subset-one-go.py +++ b/chatgpt-subset-one-go.py @@ -60,10 +60,10 @@ def subset_font_in_place(font_path, characters): print(f"Subsetted font in place: {font_path}") if __name__ == "__main__": - used_chars = get_used_characters(sys.argv[1:]) + used_chars = get_used_characters(sys.argv[2:]) print(f"Extracted {len(used_chars)} unique characters from HTML files.") - font_files = find_font_files(".") + font_files = find_font_files(sys.argv[1]) print(f"Found {len(font_files)} font files to subset.") for font_file in font_files: