# HG changeset patch # User Thinker K.F. Li # Date 1218564715 -28800 # Node ID 35c2b7ba140b71e7d71d4c5ba218a6dfdd756cf6 # Parent c668c5c3ceaea240962ecc9bb276777a60b58c83 Use file name of generated M4 script as name of header diff -r c668c5c3ceae -r 35c2b7ba140b tools/svg2code.py --- 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 []' % (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+')