[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
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[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 codecs from doing this or is there a better
way to create and add data to a utf-16 text file?

Thanks Tim.


Send instant messages to your online friends http://uk.messenger.yahoo.com 
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor