fix export_kicad_module_footprint.py

This commit is contained in:
Andrei 2021-06-23 19:37:37 +03:00
parent 0450a15cd3
commit 4279267fdb
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def process_pcb(src_name, dst_name):
for line in src_f:
m = pat_footprint.match(line)
if m:
if ("Mod-Hellen" in m.group(2) or "MOD_Hellen" in m.group(2)) and in_footprint == False:
if ("Mod-Hellen" in m.group(2) or "MOD_Hellen" in m.group(2) or "MOD_HELLEN" in m.group(2)) and in_footprint == False:
print ("* Found footprint " + m.group(2))
# the close symbol should have the same indent as the open one
pat_close_symbol = re.compile(r'^' + m.group(1) + '\)')