[Tutor] distutils and the postinstallation script

2010-02-24 Thread Tim Brown
Hi, I've written an installation, for Windows, using distutils to produce a .exe setup file. When the setup.exe is run, can my postinstallation script can find out which folder the setup.exe is in ? Thanks Tim ___ Tutor maillist - Tutor@python.org T

[Tutor] appending to a utf-16 encoded text file

2008-10-21 Thread Tim Brown
Hi, I'm trying to create and append unicode strings to a utf-16 text file. The best I could come up with was to use codecs.open() with an encoding of 'utf-16' but when I do an append I get another UTF16 BOM put into the file which other programs do not expect to see :-( Is there some way to stop