Project source code layout?
davea at ieee.org
Fri Jun 5 09:29:59 CEST 2009
Lawrence D'Oliveiro wrote:
> In message <mailman.1158.1244174209.8015.python-list at python.org>, Dave Angel
>> 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
So the way you know you're in a production environment is that you do
not have such an environment variable.
More information about the Python-list