On Tue, Apr 16, 2013 at 01:43:15PM -0700, alonn wrote:
> Is there an elegant way to do this? I need an app to email me some error 
> data, and one of the things I need to know is with what config.ini it was 
> run. 
> I guess I could iterate through sys.argv and search for a string that 
> contains *.ini but is there a more elegant way to do this?

I haven't tested this, but could you check the contents of:

    import tg
    tg.config['__file__']

Attachment: pgpAoSD6LNKgY.pgp
Description: PGP signature

Reply via email to