gchrstruct_export.py 400 B

123456789101112131415161718
  1. import os
  2. from pathlib import Path
  3. from gcstruct.gcstruct import GCStruct
  4. def gcstruct_export():
  5. base_dir = "C:/Projekte/GCHRStruct_Hyundai_Export"
  6. if not Path(base_dir).exists():
  7. base_dir = os.getcwd()
  8. struct = GCStruct(base_dir)
  9. struct.get_structure_and_tree()
  10. struct.export_structure_and_tree()
  11. struct.export()
  12. if __name__ == "__main__":
  13. gcstruct_export()