freeze and minidom problem
Martin von Loewis
loewis at informatik.hu-berlin.de
Sun Dec 9 13:50:55 EST 2001
Matthew King <matt at avaquest.com> writes:
> Any ideas? Thanks in advance...
My guess is that freeze doesn't detect that expatreader is used, so it
imports none of the SAX code.
For Python 2.2, we put
# tell modulefinder that importing sax potentially imports expatreader
_false = 0
if _false:
import xml.sax.expatreader
into xml.sax.__init__.py; that should allow you to freeze minidom/sax.
There is another complication that modulefinder can't learn to also
freeze _xmlplus when looking for xml. This should be no problem for
you, since minidom should work fine in Python 2.1.
Regards,
Martin
More information about the Python-list
mailing list