[Zope-dev] Moving forward with Zope 2.7

Chris McDonough chrism@zope.com
26 Nov 2002 09:18:19 -0500


On Tue, 2002-11-26 at 05:22, Tino Wildenhain wrote:
> 
> Oh, while we are at it - how do I set an environment variable in a python 
> script
> for use outside the script? E.g. like "export" does in shell scripts?

Not from a Zope Python Script (it's restricted by the security
machinery) but from any other piece of Python:

import os
os.environ['NAME] = 'VALUE'