[Zope-dev] z2.py and environment variables

2001-03-21 Thread Dario Lopez-Kästen

Hello!

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 

   lib/python/App/FindHomes.py?

My guess would be the ones in FindHomes.py, as calls like 

  try: home=os.environ['SOFTWARE_HOME']

seems to have something to do with it :-)

I just need to make sure which one is the case.

Thanks.

/dario

- 
Dario Lopez-Ksten Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] z2.py and environment variables

2001-03-21 Thread Martijn Pieters

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:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )