Mercurial > MadButterfly
changeset 65:35c2b7ba140b
Use file name of generated M4 script as name of header
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 13 Aug 2008 02:11:55 +0800 |
parents | c668c5c3ceae |
children | 309f1eefbec0 |
files | tools/svg2code.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/svg2code.py Wed Aug 13 02:07:40 2008 +0800 +++ b/tools/svg2code.py Wed Aug 13 02:11:55 2008 +0800 @@ -215,7 +215,7 @@ print >> sys.stderr, '%s <SVG file> [<output>]' % (sys.argv[0]) pass - struct_name = path.basename(svgfn).split('.')[0] + struct_name = path.basename(codefn).split('.')[0] dom = parse(svgfn) codefo = file(codefn, 'w+')