Thanks Kent and Andreas
That is exactly what I needed! Very nice indeed...
jay
On 7/26/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
>
> jay wrote:
> > Hello all,
> >
> > If I import a module, which has a bunch of simple functions in it, is
> > there an easy way to find the direct caller from in
jay wrote:
> Hello all,
>
> If I import a module, which has a bunch of simple functions in it, is
> there an easy way to find the direct caller from inside one of those
> functions? I'm looking to know which script has imported and thus
> called the library function. Thanks!
http://aspn.act
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
sys._getframe.
Andreas
jay wrote:
> Hello all,
>
> If I import a module, which has a bunch of simple functions in it, is
> there an easy way to find the direct caller from inside one of those
> functions? I'm looking to know which script has impor
Hello all,
If I import a module, which has a bunch of simple functions in it, is there
an easy way to find the direct caller from inside one of those functions?
I'm looking to know which script has imported and thus called the library
function. Thanks!
jay
___