diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-06-27 23:13:08 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-06-27 23:13:08 +0200 |
commit | 9d656614d8fef518f6f400bb5560f9e4a0ad3b8a (patch) | |
tree | f859f80e3c61696ca93043a3d3f25af909118968 /py | |
parent | 357be83539def82f68de60b4f2a56758294e7f81 (diff) | |
download | kicad-utils-9d656614d8fef518f6f400bb5560f9e4a0ad3b8a.tar.gz kicad-utils-9d656614d8fef518f6f400bb5560f9e4a0ad3b8a.tar.bz2 kicad-utils-9d656614d8fef518f6f400bb5560f9e4a0ad3b8a.tar.xz kicad-utils-9d656614d8fef518f6f400bb5560f9e4a0ad3b8a.zip |
o Adding non-plated through-hole drill file.
Diffstat (limited to 'py')
-rwxr-xr-x | py/kicad_gerber.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/py/kicad_gerber.py b/py/kicad_gerber.py index f42dc5e..a597ba2 100755 --- a/py/kicad_gerber.py +++ b/py/kicad_gerber.py @@ -115,6 +115,7 @@ if args.protel_extensions: basename = os.path.splitext(filename)[0] drlFileOut = drlFile = basename + ".drl" +drlNpthFileOut = drlNpthFile = basename + "-NPTH.drl" if args.protel_extensions: n, e = os.path.splitext(drlFileOut) @@ -123,6 +124,8 @@ if args.protel_extensions: if args.uppercase_extensions: n, e = os.path.splitext(drlFileOut) drlFileOut = n + e.upper() + n, e = os.path.splitext(drlNpthFileOut) + drlNpthFileOut = n + e.upper() values = vars(args) for plan in plot_plan: @@ -161,6 +164,7 @@ if args.detect_files_only: if args.protel_extensions: print drlFileOut + print drlNpthFileOut sys.exit(0) # Set some important plot options: @@ -216,3 +220,7 @@ drlwriter.CreateDrillandMapFilesSet(pctl.GetPlotDirName(), genDrl, genMap) if drlFile != drlFileOut: os.rename(drlFile, drlFileOut) pass + +if drlFile != drlNpthFileOut: + os.rename(drlNpthFile, drlNpthFileOut) + pass |