fix copy_from_Kicad

This commit is contained in:
Andrei 2021-04-10 19:17:07 +03:00
parent fc87fdf3e0
commit 3137b931f5
1 changed files with 4 additions and 3 deletions

View File

@ -52,11 +52,12 @@ mkdir_p(dst_path)
# copy gerbers
print ("Reading gerbers from " + src_name + "*.*")
gerbers = [ ".gtl", ".gto", ".gtp", ".gts", ".gbl", ".gbo", ".gbs", ".gm1", ".drl"]
gerbers = [ ".GTL", ".GTO", ".GTP", ".GTS", ".GBL", ".GBO", ".GBS", ".GM1", ".DRL"]
for g in gerbers:
copied = False
for gPath in glob.glob(src_name + "*" + g):
print ("* Copying " + name + g + "...")
gl = g.lower()
for gPath in glob.glob(src_name + "*" + gl):
print ("* Copying " + name + gl + "...")
# keepout layer is a special case
if (g == ".GM1"):
# currently the "edge cuts" layer is used as a frame border