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
|
||||
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:
|
||||
copied = False
|
||||
gl = g.lower()
|
||||
|
@ -86,6 +86,8 @@ for g in gerbers:
|
|||
if not copied:
|
||||
if (g == ".DRL"):
|
||||
print ("* Skipping Drill for " + name + "...")
|
||||
elif (g == ".GBP"):
|
||||
print ("* Skipping Bottom Paste for " + name + "...")
|
||||
elif (g == ".G2" or g == ".G3"):
|
||||
print ("* Skipping Internal Layer " + g + " for " + name + "...")
|
||||
else:
|
||||
|
|
|
@ -91,6 +91,8 @@ def print_module(name, prefixPath, moduleName, fileName, isBoard, isBottom):
|
|||
"*Keepout=%(prefix)s.GKO",
|
||||
"Drills=%(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):
|
||||
write_lines(file, [
|
||||
"*InnerLayer2=%(prefix)s.G1",
|
||||
|
|
Loading…
Reference in New Issue