__name__ of a module
Steven D. Majewski (sdm7g@elvis.med.virginia.edu)
Thu, 11 Nov 1993 12:57:03 -0500
"module.__name__" contains the name string of < module 'module' >
but it doesn't seem to be defined within the scope of
the imported file itself, neither as "__name__", nor as
"__main__.module.__name__" -- Although the latter, even
if it DID work, would not be very useful for what I
want - which is for a module to get it's own name.
Is there any way to do this ?
Or any module equivalent of a method's 'self' ?
- Steve Majewski