Function getting a reference to its own module

greg greg at cosc.canterbury.ac.nz
Wed Sep 17 03:52:13 CEST 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