gchr2_local.py 460 B

12345678910111213141516171819202122
  1. import cProfile
  2. import os
  3. from pathlib import Path
  4. from gchr.gchr import GCHR
  5. def gchr_local() -> None:
  6. base_dir = os.getcwd() + "\\..\\GCHR2_Testdaten\\Kunden"
  7. for path in Path(base_dir).glob("*"):
  8. if not path.is_dir():
  9. continue
  10. print(path.name)
  11. gchr = GCHR(str(path))
  12. gchr.export_all_periods()
  13. if __name__ == "__main__":
  14. cProfile.run(
  15. "gchr_local()",
  16. "temp/gchr_local.prof",
  17. )