[Zope] Confusion over INST_HOME and INSTANCE_HOME
Tony McDonald
tony.mcdonald@ncl.ac.uk
Wed, 27 Jun 2001 13:17:18 +0100
Hi,
I have this which is from a stock 2.3.3 distribution under Solaris:
219 % more start
#! /bin/sh
reldir=`dirname $0`
INST_HOME=`cd $reldir; pwd`
export INST_HOME
exec /usr/local/bin/python2.1 \
$INST_HOME/z2.py "$@"
When started up, this works fine.
Looking for INST_HOME in the src tree I get:
220 % find . -print | xargs grep INST_HOME
./inst/make_start.py: varname='INST_HOME'
Binary file ./inst/make_start.pyc matches
./start:INST_HOME=`cd $reldir; pwd`
./start:export INST_HOME
./start: $INST_HOME/z2.py "$@"
Doing the same for INSTANCE_HOME brings back 52 lines of matches.
I'm using the How-To at <http://www.zope.org/Members/4am/instancehome> to
have one source installation serve up loads of mini zope sites. It has
always worked well under 2.3.0, and here's a 'start' file that does work.
Thr python used is 1.52
(Zope 2.3.0)
#! /bin/sh
reldir=`dirname $0`
INSTANCE_HOME=`cd $reldir; pwd`
export INSTANCE_HOME
PYTHONHOME=/home/zope/Zope-2.3.0-src
export PYTHONHOME
exec /usr/local/bin/python $PYTHONHOME/z2.py "$@"
Whereas this start file under Zope 2.3.3, (note: I've got both INST_HOME
and INSTANCE_HOME defined). This is also a python2.1 distribution
#! /bin/sh
reldir=`dirname $0`
INSTANCE_HOME=`cd $reldir; pwd`
INST_HOME=`cd $reldir; pwd`
export INSTANCE_HOME
export INST_HOME
PYTHONHOME=/home/zope/Zope-2.3.3-src
export PYTHONHOME
exec /usr/local/bin/python2.1 $PYTHONHOME/z2.py "$@"
Gives an import error
243 % ./start
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/home/zope/Zope-2.3.3-src/z2.py", line 296, in ?
import os, sys, getopt, string
ImportError: No module named os
Does anyone know what I'm doing wrong here?
--
Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope