suisa-convert-acr-v4.py aktualisiert
This commit is contained in:
@@ -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}")
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# CLI‑Entry
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user