On Tue, May 10, 2011 at 03:33:43PM -0600, Pгoм???тн?????s 0x01 wrote:
> Is there something I can do to catch this? Should I be using some kind of
> registry or dictionary to keep track of imports? (Would that help?)
In my experience, problematic import is usually a result of mixed
absolute and relative import - a submodule A imports submodule X as
parent.X and submodule B imports X as X; add sys.path manipulations and
voila - X is imported both as parent.X and top-level X.
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|