Perfect, thanks!

On Fri, Apr 17, 2009 at 7:19 PM, David Symonds <dsymo...@gmail.com> wrote:

>
> On Sat, Apr 18, 2009 at 11:20 AM, Lee Olayvar <leeolay...@gmail.com>
> wrote:
>
> > Is there a simple way to tell where your app is running? Eg, something as
> > fast as a little bool check? (__debug__ .. if that worked)
>
> import os
> is_debug = os.environ['SERVER_SOFTWARE'].startswith('Development/')
>
>
>
> Dave.
>
> >
>


-- 
Lee Olayvar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to