mirror of https://github.com/rusefi/hellen-one.git
support for .GBP files
This commit is contained in:
parent
1928efcfd7
commit
f848ce2010
|
@ -62,7 +62,7 @@ mkdir_p(dst_path)
|
||||||
|
|
||||||
# copy gerbers
|
# copy gerbers
|
||||||
print ("Reading gerbers from " + src_name + "*.*")
|
print ("Reading gerbers from " + src_name + "*.*")
|
||||||
gerbers = [ ".GTL", ".GTO", ".GTP", ".GTS", ".GBL", ".GBO", ".GBS", ".GM1", ".G2", ".G3", ".DRL"]
|
gerbers = [ ".GTL", ".GTO", ".GTP", ".GTS", ".GBL", ".GBO", ".GBS", ".GBP", ".GM1", ".G2", ".G3", ".DRL"]
|
||||||
for g in gerbers:
|
for g in gerbers:
|
||||||
copied = False
|
copied = False
|
||||||
gl = g.lower()
|
gl = g.lower()
|
||||||
|
@ -86,6 +86,8 @@ for g in gerbers:
|
||||||
if not copied:
|
if not copied:
|
||||||
if (g == ".DRL"):
|
if (g == ".DRL"):
|
||||||
print ("* Skipping Drill for " + name + "...")
|
print ("* Skipping Drill for " + name + "...")
|
||||||
|
elif (g == ".GBP"):
|
||||||
|
print ("* Skipping Bottom Paste for " + name + "...")
|
||||||
elif (g == ".G2" or g == ".G3"):
|
elif (g == ".G2" or g == ".G3"):
|
||||||
print ("* Skipping Internal Layer " + g + " for " + name + "...")
|
print ("* Skipping Internal Layer " + g + " for " + name + "...")
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -91,6 +91,8 @@ def print_module(name, prefixPath, moduleName, fileName, isBoard, isBottom):
|
||||||
"*Keepout=%(prefix)s.GKO",
|
"*Keepout=%(prefix)s.GKO",
|
||||||
"Drills=%(prefix)s.DRL",
|
"Drills=%(prefix)s.DRL",
|
||||||
"drillspth=%(prefix)s.DRL"])
|
"drillspth=%(prefix)s.DRL"])
|
||||||
|
if ((os.path.isfile(prefix + ".GBP")):
|
||||||
|
write_lines(file, "*" + bottom + "SolderPasteMask=%(prefix)s.GBP")
|
||||||
if ((os.path.isfile(prefix + ".G1") and os.path.isfile(prefix + ".G2")) or isBoard == 1):
|
if ((os.path.isfile(prefix + ".G1") and os.path.isfile(prefix + ".G2")) or isBoard == 1):
|
||||||
write_lines(file, [
|
write_lines(file, [
|
||||||
"*InnerLayer2=%(prefix)s.G1",
|
"*InnerLayer2=%(prefix)s.G1",
|
||||||
|
|
Loading…
Reference in New Issue