diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2017-08-04 17:06:13 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-08-04 17:06:13 +0200 |
commit | 81404628cda007eadb17c71f472c3ca251ab0a0a (patch) | |
tree | 0cde0526f48447d6e36d5f6f679728e4f6de1d44 /py | |
parent | d50e9c531df310cf91c98f2768892291de781ada (diff) | |
download | kicad-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-x | py/kicad_gerber.py | 4 |
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 |