suisa-convert-acr-v4.py aktualisiert

This commit is contained in:
2026-02-05 15:32:04 +01:00
parent b2003f842e
commit f7d39ef642

View File

@@ -133,7 +133,7 @@ def format_report(input_path: Path, output_path: Path) -> None:
df = _build_dataframe(input_path)
df.to_excel(output_path, index=False)
_autofit_and_align(output_path)
print(f"Formatiertes Reporting gespeichert → {output_path}")
print(f"Formatiertes Reporting gespeichert → {output_path}")
# ---------------------------------------------------------------------------
# CLIEntry
@@ -150,9 +150,9 @@ if __name__ == "__main__":
if alt.exists():
in_path = alt
else:
sys.exit(f"Datei nicht gefunden: {in_path} (auch nicht {alt})")
sys.exit(f"Datei nicht gefunden: {in_path} (auch nicht {alt})")
elif not in_path.exists():
sys.exit(f"Datei nicht gefunden: {in_path}")
sys.exit(f"Datei nicht gefunden: {in_path}")
out_path = Path(args.output) if args.output else in_path.with_name(in_path.stem + "_formatiert.xlsx")
format_report(in_path, out_path)