Tricky import question.

David Poundall david at jotax.com
Tue Oct 25 11:14:47 EDT 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