fix some BOM names exported from Kicad

This commit is contained in:
Andrei 2021-04-11 11:53:31 +03:00
parent 6ed466df55
commit 46ce17a2ef
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ with open(src_name + ".csv", 'rb') as src_f, open(dst_name + "-BOM.csv", 'w') as
lcsc = row[3]
if footprint in footprint_LUT:
footprint = footprint_LUT[footprint]
# remove kicad library prefix from the footprint names (such as "hellen-one-common:")
footprint = re.sub(r"[^\:]+\:", "", footprint)
bom[des] = footprint
print ("* " + des)
mod = pat_module.match(comment)