[ZCM] Re: [ZC] 1233/ 5 Comment "ZOPE_CONFIG environment var for
app=Zope.app()"
Stefan H. Holek
stefan at epy.co.at
Thu May 13 13:49:31 EDT 2004
On Donnerstag, Mai 13, 2004, at 19:37 Europe/Vienna, Erik A.Dahl wrote:
> Does honoring this variable hurt anything?
Not, as far as I can tell. As long as it is implemented in
App.config.getConfiguration().
Like so (pseudocode):
if _config is None:
configfile = os.environ.get('ZOPE_CONFIG')
if configfile is not None:
Zope.configure(configfile)
else:
setConfiguration(DefaultConfiguration())
I was thinking about tests mostly, not scripts, where I can see it is
convenient.
Stefan
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is. /Pete McBreen/
More information about the Zope-Collector-Monitor
mailing list