On Tue, Apr 16, 2013 at 4:16 PM, Ralph Bean <[email protected]> wrote:
> > 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__'] > I'm not sure that's the right key, but the name of the ini file is in tg.config somewhere. I've used it before. -- Kevin Horn -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

