X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=packages%2Fwire-ant.py;h=6cac18c619cf522af1f61562f413a0e93f4ece5f;hb=e9ffe253692d6f1de1090089a940d962cfc174e6;hp=f8d4052c146620383ed1b88db06bc155e890a78a;hpb=9bd6639a5ba12f2085b0c9d1e4f5a65d3d10b958;p=hw%2Faltusmetrum diff --git a/packages/wire-ant.py b/packages/wire-ant.py index f8d4052..6cac18c 100755 --- a/packages/wire-ant.py +++ b/packages/wire-ant.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Copyright 2014 by Bdale Garbee . GPLv2 # # Program to emit PCB footprint for edge-launch wire antenna @@ -13,15 +13,15 @@ PinSpacing = PinWidth / 2 + 4000 import sys -print '# author: Bdale Garbee' -print '# email: bdale@gag.com' -print '# dist-license: GPL 2' -print '# use-license: unlimited' +print('# author: Bdale Garbee') +print('# email: bdale@gag.com') +print('# dist-license: GPL 3') +print('# use-license: unlimited') -print 'Element[0x0 "wire-ant" "" "" 0 0 0 0 0 0 0x0]' -print "(" +print('Element[0x0 "wire-ant" "" "" 0 0 0 0 0 0 0x0]') +print("(") -print ' Pad[',\ +print(' Pad[',\ (-PinSpacing - GndWidth/2), \ (GndWidth/2), \ (-PinSpacing - GndWidth/2), \ @@ -29,8 +29,8 @@ print ' Pad[',\ (GndWidth), \ 0, \ (GndWidth + 600), \ - '"pin2"', '"2"', '"square,nopaste"]' -print ' Pad[',\ + '"pin2"', '"2"', '"square,nopaste"]') +print(' Pad[',\ 0, \ (PinWidth/2), \ 0, \ @@ -38,8 +38,8 @@ print ' Pad[',\ (PinWidth), \ 0, \ (PinWidth + 600), \ - '"pin1"', '"1"', '"square,nopaste"]' -print ' Pad[',\ + '"pin1"', '"1"', '"square,nopaste"]') +print(' Pad[',\ (PinSpacing + GndWidth/2), \ (GndWidth/2), \ (PinSpacing + GndWidth/2), \ @@ -47,6 +47,6 @@ print ' Pad[',\ (GndWidth), \ 0, \ (GndWidth + 600), \ - '"pin2"', '"2"', '"square,nopaste"]' + '"pin2"', '"2"', '"square,nopaste"]') -print ")" +print(")")