__import__ function broken in 2.6

Frank Millman frank at chagford.com
Sun Apr 26 05:31:00 EDT 2009


On Apr 25, 11:37 pm, Paul <Paul22... at gmail.com> wrote:
> Hi
>
> It seems in 2.6 you are no longer able to use the __import__ function
> with different paths.

I did not study your code in detail, so I may have missed something,
but can't you use the 'imp' module for this? That still works in 2.6,
and seems to be present in 3.1 as well.

Frank Millman



More information about the Python-list mailing list