diff options
-rw-r--r-- | src/ee/tools/digikey_download_facts.py | 4 | ||||
-rw-r--r-- | src/ee/tools/kicad_make_bom.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ee/tools/digikey_download_facts.py b/src/ee/tools/digikey_download_facts.py index cc75f74..923b996 100644 --- a/src/ee/tools/digikey_download_facts.py +++ b/src/ee/tools/digikey_download_facts.py @@ -60,9 +60,9 @@ if args.part: [queries.append(Query(True, p)) for p in args.part] if args.sch: - from ee.kicad import read_schematic, to_bom + from ee.kicad import read_schematics, to_bom - sch = read_schematic(args.sch) + sch = read_schematics(args.sch) for c in to_bom(sch): digikey = c.get_field("digikey") if digikey: diff --git a/src/ee/tools/kicad_make_bom.py b/src/ee/tools/kicad_make_bom.py index 7d25799..9f67899 100644 --- a/src/ee/tools/kicad_make_bom.py +++ b/src/ee/tools/kicad_make_bom.py @@ -21,7 +21,7 @@ parser.add_argument("--pretty", args = parser.parse_args() -sch = kicad.read_schematic(args.sch) +sch = kicad.read_schematics(args.sch) bom = kicad.to_bom_xml(sch) xml = ElementTree.tostring(bom, encoding='unicode') |