Set an environment variable

Christian christian at spam.not
Thu Oct 20 01:50:25 EDT 2005


Another question from a not even newbie:

In Unix you can set an environment variable with the command
     export PYTHONPATH
but I would like to set the variable from at .py script.

So my question is:
How do I export an environment variable in a .py script?


Thanks

Chris



More information about the Python-list mailing list