generated from sirlilpanda/kicad-project-template-actionless
now it should only create the files once
This commit is contained in:
@@ -203,15 +203,13 @@ 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
|
k = KicadProject(Path("hardware/poe-lights/poe-lights.kicad_pro"))
|
||||||
for path in Path(".").rglob('*.kicad_pro'):
|
k.drc_check(report_format = OutputReportType.REPORT)
|
||||||
k = KicadProject(Path("hardware/poe-lights/poe-lights.kicad_pro"))
|
k.erc_check(report_format = OutputReportType.REPORT)
|
||||||
k.drc_check(report_format = OutputReportType.REPORT)
|
k.process_bom()
|
||||||
k.erc_check(report_format = OutputReportType.REPORT)
|
k.create_schmatic_pdf()
|
||||||
k.process_bom()
|
k.get_image()
|
||||||
k.create_schmatic_pdf()
|
commit_files(k.created_files, "auto commited")
|
||||||
k.get_image()
|
|
||||||
commit_files(k.created_files, "auto commited")
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user