Set an environment variable

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Fri Oct 21 03:36:47 EDT 2005


Mike Meyer enlightened us with:
> It's simpler to use eval and command substitution:
>
> eval $(python myScript.py)

This looks like the best solution to me.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list