[Zope-dev] z2.py and environment variables
Martijn Pieters
mj@digicool.com
Wed, 21 Mar 2001 16:02:57 +0100
On Wed, Mar 21, 2001 at 03:14:33PM +0100, Dario Lopez-K?sten wrote:
> I am trying to understand how z2.py and enviroments variables work, so =
> that I can have complete control of how I start Zope. =
> I-am-not-a-Python-programmer-yet, so I apologise in advance if the =
> question is a stupid one.
>
> Given the possibility to use INSTANCE_HOME etc, can I override most of =
> the uppercase variables defined in z2.py by setting and exporting them =
> in my /bin/sh script or are the only "overridable" variables the ones =
> defined and used in=20
>
> lib/python/App/FindHomes.py?
>
> My guess would be the ones in FindHomes.py, as calls like=20
>
> try: home=3Dos.environ['SOFTWARE_HOME']
>
> seems to have something to do with it :-)
You can override them by setting environment variables. For a specific
example where INSTANCE_HOME is set see:
http://www.zope.org/Members/4am/instancehome
--
Martijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
---------------------------------------------