Author: reinhard Date: 2009-11-26 05:05:51 -0600 (Thu, 26 Nov 2009) New Revision: 10061
Modified: trunk/gnue-common/src/base/log.py Log: Don't activate import logging for "frozen" installs. Modified: trunk/gnue-common/src/base/log.py =================================================================== --- trunk/gnue-common/src/base/log.py 2009-11-26 11:02:57 UTC (rev 10060) +++ trunk/gnue-common/src/base/log.py 2009-11-26 11:05:51 UTC (rev 10061) @@ -762,7 +762,10 @@ sys.excepthook = excepthook # Activate import logging. - ihooks.ModuleImporter(__ImportLogger(ihooks.Hooks())).install() + # This seems to break importing from library.zip, so don't activate it for + # py2exe built applications. + if not hasattr(sys, 'frozen'): + ihooks.ModuleImporter(__ImportLogger(ihooks.Hooks())).install() # ----------------------------------------------------------------------------- _______________________________________________ commit-gnue mailing list commit-gnue@gnu.org http://lists.gnu.org/mailman/listinfo/commit-gnue