Fix relative directory

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
jpirnay
2026-05-03 23:08:24 +02:00
co-authored by Copilot
parent 34d976d8f7
commit 48dec00d97
2 changed files with 96 additions and 100 deletions
+2 -2
View File
@@ -134,7 +134,7 @@ def scan_cpfont_files(input_dir: Path) -> dict[str, list[Path]]:
def build_manifest(
families: dict[str, list[Path]], base_url: str
families: dict[str, list[Path]], base_url: str, input_dir: Path
) -> dict:
"""Build the manifest dict from discovered font families."""
manifest_families = []
@@ -238,7 +238,7 @@ def main():
for name, files in sorted(families.items()):
print(f" {name}: {len(files)} files")
manifest = build_manifest(families, base_url)
manifest = build_manifest(families, base_url, input_dir)
output_path = Path(args.output)
output_path.parent.mkdir(parents=True, exist_ok=True)