Ben Bangert wrote:
> On May 21, 2006, at 5:22 AM, Alex Greif wrote:
> 
>> how can I get the absolut path of the log file (paster.log) in a
>> controller?
> 
> 
> 
> I'm not sure offhand whether this is present in paste deploys CONFIG 
> object, or somewhere else accessible during program execution. Ian, is 
> it available in the environ anywhere or are run-time paster options now 
> present during execution?

I hadn't really thought about it before, but you could look in 
sys.stdout.filename.  But if you aren't running under paster, or you 
aren't running with a log file (e.g., paster is just printing to stdout) 
then that'll give you an AttributeError.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to