swc-windows-installer.py: Use `with` to write script wrappers
authorW. Trevor King <wking@tremily.us>
Wed, 20 Mar 2013 22:58:18 +0000 (18:58 -0400)
committerW. Trevor King <wking@tremily.us>
Mon, 21 Oct 2013 03:55:18 +0000 (20:55 -0700)
commitdca9218f3886899f8fc7a011497b87271852649d
tree8729074b3f246ee22931d662789cb39fc17a318f
parent482f838f7479aa7658a211a8ce7e46e55ddd365d
swc-windows-installer.py: Use `with` to write script wrappers

From PEP 343.  This gives you automatic file descriptor (file handles
on Windows?) cleanup on errors.  Also use os.path.join() to build the
paths.

[1]: http://www.python.org/dev/peps/pep-0343/
setup/swc-windows-installer.py