aboutsummaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-08-04 17:06:13 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-08-04 17:06:13 +0200
commit81404628cda007eadb17c71f472c3ca251ab0a0a (patch)
tree0cde0526f48447d6e36d5f6f679728e4f6de1d44 /py
parentd50e9c531df310cf91c98f2768892291de781ada (diff)
downloadkicad-utils-81404628cda007eadb17c71f472c3ca251ab0a0a.tar.gz
kicad-utils-81404628cda007eadb17c71f472c3ca251ab0a0a.tar.bz2
kicad-utils-81404628cda007eadb17c71f472c3ca251ab0a0a.tar.xz
kicad-utils-81404628cda007eadb17c71f472c3ca251ab0a0a.zip
o Fixing renaming of NPTH file.
Diffstat (limited to 'py')
-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