andreika-git 2022-12-06 21:42:13 +02:00
parent 300d41dc1f
commit d7928d85cc
1 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,9 @@ def append_cpl(src_fname, dst_fname, x, y, mrot, isBottom, suffix = ""):
# skip header
next(src_f)
for row in reader:
if len(row) < 5:
print ("Error! Wrong format of CPL file " + src_fname)
sys.exit(3)
des = row[0]
cxmm = row[1]
cymm = row[2]
@ -160,6 +163,9 @@ def append_bom(src_fname, dst_fname, suffix = ""):
# skip header
next(src_f)
for row in reader:
if len(row) < 4:
print ("Error! Wrong format of BOM file " + src_fname)
sys.exit(3)
comment = row[0]
des = row[1]
footprint = row[2]