3 mydir
= os
.path
.dirname(__file__
)
4 output
= """<?xml version="1.0" ?>
5 <selections interface="http://foo" xmlns="http://zero-install.sourceforge.net/2004/injector/interface"><selection id="%s" interface="http://foo" main="basetest.py" version="1"/></selections>""" % mydir
6 sys
.stdout
.write('Length:%8x\n' % len(output
))
7 sys
.stdout
.write(output
)