Weird scope error
Kay Schluehr
kay.schluehr at gmx.net
Sat Apr 5 17:27:25 EDT 2008
On 5 Apr., 23:08, Michael Torrie <torr... at gmail.com> wrote:
> You need to either fix all these imports in these other modules (that
> are probably in the site_packages folder), or modify the python import
> path so that it can find ElementTree directly.
I'd prefer to set an alias in the module cache:
>>> import sys
>>> import xml.etree
>>> sys.modules["elementree"] = xml.etree
>>> from elementree import ElementTree
>>>
More information about the Python-list
mailing list