aboutsummaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rwxr-xr-xpy/kicad_gerber.py8
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