Use .env or CLI for paths and options

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-11 12:33:40 +13:00
parent ed5c186f4d
commit 6c1ae59f2d
2 changed files with 9 additions and 5 deletions

View File

@@ -4,8 +4,7 @@ Parse Protel PCB 2.8 ASCII (or Protel 99 SE PCB ASCII) and output capacitors
by net pair: JSON with net pair as key, designator/value/package and total
capacitance per net pair.
Input/output paths are read from .env (INPUT_FILE, OUTPUT_FILE) if set;
CLI arguments override them.
All paths: use .env (INPUT_FILE, OUTPUT_FILE) or CLI; CLI overrides .env.
Usage:
python capacitors_by_net_pair.py [file.pcb] [-o output.json]