! This archive contains ZoPyRus mailing list's threads from August 2002 till now.
To browse through the previous archive part, please refer to http://itconnection.ru/cgi-bin/ezmlm-browse/ pages.
[Zopyrus] sys.setdefaultencoding
Oleg Broytmann
phd at phd.pp.ru
Tue Feb 17 11:37:40 MSK 2004
On Tue, Feb 17, 2004 at 10:08:50AM +0200, Oleg Deribas wrote:
> В общем, меня устраивает и sitecustomize, но когда я оборачиваю
> программу с помощью py2exe (0.5.0) - sitecustomize не действует ;(
reload(sys)
sys.setdefaultencoding()
или
del sys.modules["sys"]
import sys
sys.setdefaultencoding()
в основной программе. Хак, конечно, но что делать...
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Zopyrus
mailing list