I can confirm that the duplication is present: basically, the zopectl and runzope scripts set the 'INSTANCE_HOME' environment variable out of supersition:
Deleting the assignment from the two scripts still allows Zope to start,
which suggests that they are unnecessary. In fact, they predate the
ZConfig handler which sets the environment variable based on the config
I can confirm that the duplication is present: basically, the zopectl and runzope scripts set the 'INSTANCE_HOME' environment variable out of supersition:
$ cd projects/ Zope-CVS/ Zope-2. 12-branch/ INSTANCE_ HOME="/ tmp/z212" bat:@set INSTANCE_ HOME=/tmp/ z212 bat:@set CONFIG_ FILE=%INSTANCE_ HOME%\etc\ zope.conf INSTANCE_ HOME="/ tmp/z212" bat:@set INSTANCE_ HOME=/tmp/ z212 bat:@set CONFIG_ FILE=%INSTANCE_ HOME%\etc\ zope.conf conf:%define INSTANCE /tmp/z212 conf:instanceho me $INSTANCE lib/python mypymodules etc/mime. types profile- file $INSTANCE/ var/profile. dat log/event. log log/Z2. log log/trace. log var/Data. fs
$ bin/mkzopeinstance -d /tmp/z212 -u zope:r00ler
$ cd /tmp/z212
$ grep INSTANCE bin/* etc/*
bin/runzope:
bin/runzope:export INSTANCE_HOME
bin/runzope.
bin/runzope.
bin/zopectl:
bin/zopectl:export INSTANCE_HOME
bin/zopectl.
bin/zopectl.
etc/zope.
etc/zope.
etc/zope.conf:# Default: $INSTANCE/var
etc/zope.conf:# Default: $INSTANCE/
etc/zope.conf:# path $INSTANCE/
etc/zope.conf:# Default: $INSTANCE/Products
etc/zope.conf:# mime-types $INSTANCE/
etc/zope.conf:# publisher-
etc/zope.conf: path $INSTANCE/
etc/zope.conf: path $INSTANCE/
etc/zope.conf:# path $INSTANCE/
etc/zope.conf: path $INSTANCE/
etc/zope.conf:# var $INSTANCE/var
Deleting the assignment from the two scripts still allows Zope to start,
which suggests that they are unnecessary. In fact, they predate the
ZConfig handler which sets the environment variable based on the config