Tricky import question.

David Poundall david at
Tue Oct 25 17:14:47 CEST 2005

Sadly I get this reply when I try that.

AttributeError: 'module' object has no attribute 'main'

I am getting the impression that the value returned from the
__import__() function is only a string reference NOT an object.

I am going to have a go at trying this with the imp' module as that
specifically mentions that an object is returned.

More information about the Python-list mailing list