now it should only create the files once

This commit is contained in:
2026-08-24 21:21:49 +12:00
parent fdd92fa60f
commit 5a2af73107

View File

@@ -203,8 +203,6 @@ def commit_files(files: list[Path], commit_message : str) -> None:
ret_commit = subprocess.call(f"git commit -m \"{commit_message}\"", shell=True) ret_commit = subprocess.call(f"git commit -m \"{commit_message}\"", shell=True)
def main() -> None: def main() -> None:
# find all kicad project files to operate on
for path in Path(".").rglob('*.kicad_pro'):
k = KicadProject(Path("hardware/poe-lights/poe-lights.kicad_pro")) k = KicadProject(Path("hardware/poe-lights/poe-lights.kicad_pro"))
k.drc_check(report_format = OutputReportType.REPORT) k.drc_check(report_format = OutputReportType.REPORT)
k.erc_check(report_format = OutputReportType.REPORT) k.erc_check(report_format = OutputReportType.REPORT)