Project source code layout?

Dave Angel davea at ieee.org
Fri Jun 5 03:29:59 EDT 2009


Lawrence D'Oliveiro wrote:
> In message <mailman.1158.1244174209.8015.python-list at 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.




More information about the Python-list mailing list