How do I set environment variables outside the python script? Basicaly, I want to run a python script to set some environment variables, then be able to use them in the shell that had called the python script (after the script had completed). I need this for both Linux and NT/Win2k.