[Zope-dev] Moving forward with Zope 2.7
Tino Wildenhain
tino@wildenhain.de
Tue, 26 Nov 2002 16:41:27 +0100
Hi,
--On Dienstag, 26. November 2002 09:18 -0500 Chris McDonough
<chrism@zope.com> wrote:
> 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'
>
>
Tried it:
>>> os.environ['MYENVIRON']='FooBar'
^D
echo $MYENVIRON
^^^^ nothing.
What is wrong?
Regards
Tino