[Distutils] py2exe and sitecustomize.py (character set selection)

kevin@cazabon.com kevin@cazabon.com
Sat Mar 1 09:53:01 2003


Hi everyone;

I'm trying to build an .exe that uses the Latin1 character set by default by
setting:  sys.setdefaultencoding("latin1") in sitecustomize.py.

The problem is that py2exe doesn't seem to be including sitecustomize.py in
a way that sets this before sys is imported.  I tried using
"force-imports=sitecustomze", but to no avail.

Any suggestions?  Thanks

Kevin.