[Tutor] using shell environment variables
Wes Bateman
wbateman@epicrealm.com
Fri, 8 Sep 2000 11:41:18 -0500 (CDT)
Ah, thanks. I was close (in the right module) but not using the right
syntax :)
Many thanks, and enjoy your weekend too :)
Wes
On Fri, 8 Sep 2000, Denis Frere wrote:
> Le Fri, Sep 08, 2000 at 10:35:47AM -0500, Wes Bateman pianota:
> > How can one use environment variables that the shell has?
>
> >>> import os
> >>> for el in os.environ.keys():
> print el, os.environ[el]
>
> That should do.
>
> Have a nice week-end.
>