Possible Duplicate:
In Python, how can I test if I'm in Google App Engine SDK?
Is there an environment flag that will tell if my code is running in production or on the development server?
I'd like to be able to use an if statement to do something different depending on this flag.
(Specific case: newlines in a text file I want to read are treated differently in the two environments.)