From 81404628cda007eadb17c71f472c3ca251ab0a0a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 4 Aug 2017 17:06:13 +0200 Subject: o Fixing renaming of NPTH file. --- py/kicad_gerber.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3