main
John Lauer Preserve board29, component assets and scaffold-fit correction candidate with reviewed footage c54169e
import json,subprocess
from pathlib import Path
P=Path(__file__).resolve().parents[1];remote='C:/Users/john/adom-projects/adom-custom-electronic-load/review';exe='C:/Users/john/AppData/Local/Programs/KiCad/10.0/bin/kicad-cli.exe'
def ab(v,a):
 r=subprocess.run(['adom-bridge','--target','AdomLapper','--ai-thread','adom-custom-load',v,json.dumps(a)],capture_output=True,text=True);return json.loads(r.stdout)
ab('send_files',{'filePaths':[str(P/'aiflow/run/board-1.kicad_pcb'),str(P/'aiflow/run/board-1.kicad_dru')],'dest':remote,'reason':'Inspect rejected placement DRC findings'})
r=ab('shell_execute',{'command':f'"{exe}" pcb drc --format json --output "{remote}/placement-drc.json" "{remote}/board-1.kicad_pcb"','timeoutSeconds':60,'reason':'Native DRC of the rejected placement candidate'});(P/'design/placement-drc-command.json').write_text(json.dumps(r));print(r.get('stdout'),r.get('stderr'))
ab('pull_file',{'filePaths':[remote+'/placement-drc.json'],'saveTo':str(P/'design')})