Function getting a reference to its own module

greg greg at cosc.canterbury.ac.nz
Tue Sep 16 21:52:13 EDT 2008


Arnaud Delobelle wrote:

> Or:
> 
> import ModuleName as this_module

Or:

this_module = __import__(__name__)

then you don't have to change anything.

-- 
Greg



More information about the Python-list mailing list