Am 08.11.2012 07:36, schrieb Lynn Oliver: > The problem I've run into on Windows is that one or more Tkinter > widgets generates an error when passed unicode text that contains code > points greater than 127. After changing the encoding to utf-8 it > works just fine. > > My question, however, was whether pyinstaller will have any problems > picking up changes to site.py. So far the reload(sys) hack has been > working fine, so I may not need to deal with the 'proper' solution in > any case.
So did I understand corretly: This is not a PyInstaller problem, but a TkInter problem. You are only seeking a solution to make your work-around work with PyIntaller, too. Correct? PyInstaller does not handle chanes to site.py. Even worse (for your case): site.py is replaced by module `fake-site.py` o make PyInstaller work in virtualenv. See hook_site.py and PyInstaller/fake/fake-site.py. Thus using sitecustomize would not solve your problem as it is no used. A simple solution could be to add *two* scripts in your .spec file: one for fixing the encoding and then the real one. HTH -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Goebel Consult http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/2011-08-horrorszenario-bring-your-own-device Blog: http://www.goebel-consult.de/blog/20050620 Goebel Consult ist Mitglied bei http://www.7-it.de/
smime.p7s
Description: S/MIME Kryptografische Unterschrift
