putenv

Peter Hansen peter at engcorp.com
Tue Dec 20 08:49:48 EST 2005


Terry Hancock wrote:
> source `my_script.py`
> 
> It's ugly, but it does work -- I have had to use this
> before in a production environment.  Well, it's not really
> any less advisable than scripting in csh to begin with. ;-)

It can even be made no-so-ugly with an alias.

alias my_script='source `my_script.py`'

or some such...

-Peter




More information about the Python-list mailing list