Hi,

--On Dienstag, 26. November 2002 09:18 -0500 Chris McDonough <[EMAIL PROTECTED]> 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


_______________________________________________
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 )

Reply via email to