From 3137b931f5453383e9a21301d0290de87160e37b Mon Sep 17 00:00:00 2001 From: Andrei Date: Sat, 10 Apr 2021 19:17:07 +0300 Subject: [PATCH] fix copy_from_Kicad --- bin/copy_from_Kicad.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/copy_from_Kicad.py b/bin/copy_from_Kicad.py index 487023c..5485b60 100644 --- a/bin/copy_from_Kicad.py +++ b/bin/copy_from_Kicad.py @@ -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