En Thu, 31 Jan 2008 13:16:47 -0200, glomde < XXXX@XXXXX.COM > escribi
>> I tried to do freeze.py for my script that uses ElementTree.
>> But got the this error:
>> File "/usr/lib/python2.5/xml/__init__.py", line 45, in<
>> AttributeError: 'str' object has no attribute 'extend'
>> The reason seems that _xmlplus.__path__ is a string
>> after freeze.py.
>> I fixed it by changing the import to:
>> sys.modules[__name__] = _xmlplus
>> except AttributeError:
>> This might not be the correct solution but it works for me. I do not
>> really now
>> how the __path__ variable works in a freezed environment.
The extend_path function (found in the pkgutil standard module) can handle