M first thought would be to use python logger, Logger.findCaller()
which will give that information in one if its returned values. But, I
wouldn't be surprised if during Massimo's next round of replies
provided a good built-in  solution a la web2py... if not, the Logger
is easy enough to implement

Mart :)

On Nov 16, 12:22 pm, Vinicius Assef <vinicius...@gmail.com> wrote:
> I have many scripts in myapp/models and, for logging purposes, I'd
> like to know what module is executing to store this information in
> database.
>
> How can I accomplish that?
>
> I've tried __main__.__file__ but it contains 'web2py.py'. Obviously
> it's not what I'm looking for.
>
> Need help.
>
> --
> Vinicius Assef.

Reply via email to