diff --git a/bin/copy_from_Kicad.py b/bin/copy_from_Kicad.py index 5485b60..fc98fcb 100644 --- a/bin/copy_from_Kicad.py +++ b/bin/copy_from_Kicad.py @@ -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)