diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-10-22 09:50:12 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-10-22 09:50:12 +0200 |
commit | 9fa8fd9614e2f35dfd0312209ccc0ac5255bf39b (patch) | |
tree | aed9000644d7187afbe648e98582007ad6930f1e /src | |
parent | 826a0eb82cc786d480888f3a032df95447c133b8 (diff) | |
download | ee-python-9fa8fd9614e2f35dfd0312209ccc0ac5255bf39b.tar.gz ee-python-9fa8fd9614e2f35dfd0312209ccc0ac5255bf39b.tar.bz2 ee-python-9fa8fd9614e2f35dfd0312209ccc0ac5255bf39b.tar.xz ee-python-9fa8fd9614e2f35dfd0312209ccc0ac5255bf39b.zip |
o Making digikey_download_facts and kicad_make_bom tools use read_schematics instead of read_schematic.
Diffstat (limited to 'src')
-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') |