Lawrence D'Oliveiro wrote:
In message <mailman.1158.1244174209.8015.python-l...@python.org>, Dave Angel wrote:

Rather than editing the source files at install time, consider just
using an environment variable in your testing environment, which would
be missing in production environment.

I'd still need to define that environment variable in a wrapper script, which means editing that script at install time ... back to square one ...


No, the whole point is it's an environment variable which is *missing" in production environment. Make sure you make it an obscure name, like
     set MyProductName_TestingMode=1

So the way you know you're in a production environment is that you do not have such an environment variable.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to