aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpy/kicad_gerber.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/kicad_gerber.py b/py/kicad_gerber.py
index a597ba2..bc73a44 100755
--- a/py/kicad_gerber.py
+++ b/py/kicad_gerber.py
@@ -120,6 +120,8 @@ drlNpthFileOut = drlNpthFile = basename + "-NPTH.drl"
if args.protel_extensions:
n, e = os.path.splitext(drlFileOut)
drlFileOut = n + ".txt"
+ n, e = os.path.splitext(drlNpthFileOut)
+ drlNpthFileOut = n + ".txt"
if args.uppercase_extensions:
n, e = os.path.splitext(drlFileOut)
@@ -221,6 +223,6 @@ if drlFile != drlFileOut:
os.rename(drlFile, drlFileOut)
pass
-if drlFile != drlNpthFileOut:
+if drlNpthFile != drlNpthFileOut:
os.rename(drlNpthFile, drlNpthFileOut)
pass