fix: create the parent directory of generated pot file

This commit is contained in:
yyc12345 committed 2026-09-22 15:20:14 +08:00
1 parent 387808f482
commit ea4b629d2c
1 file changed
+1
+1
View File
@@ -216,6 +216,7 @@ def generate_pot(manifest: Manifest, output_path: Path) -> None:
comment=entry.comment or None,
)
)
output_path.parent.mkdir(parents=True, exist_ok=True)
po.save(str(output_path))
logging.info("Wrote %d entries to POT file %s.", len(po), output_path)