I know this is something one normally should not do, and I know the reasons for it. However, I am making a debugging function within a class that should display some information about the module that called it.
I need to know how to go up one level in the name space to find a variable that should always exist in a program that both calls this module and needs this function.
I know one can get the main name space with:
import __main__
But I'm guessing that this includes everything from the very first launched module onward, and I just want the one that called this one.