I wouldn’t recommend using your package’s path to store log files, since that 
may well be installed in your virtualenv.

Instead I would place a configuration parameter in your .ini file that contains 
the path to store this extra information.

Bert

On Apr 23, 2014, at 10:50 , Seth <[email protected]> wrote:

> Apologies for any confusion. Basically I just want to know my app's root path 
> so that I can do various random things like store extra logs there, read the 
> pyramid.pid file, etc.
> 
> Based on your feedback, this seems to work, unless anybody has a better 
> suggestion:
> 
>     from pkg_resources import resource_filename
>     resource_filename('myappspkgname', '')
> 
> Thanks,
> Seth
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" 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/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to