Project source code layout?
ldo at geek-central.gen.new_zealand
Fri Jun 5 07:17:25 EDT 2009
In message <mailman.1166.1244187013.8015.python-list at python.org>, Dave Angel
> 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.
Sounds like a very roundabout solution to the wrong problem.
More information about the Python-list