ipython env

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Apr 5 17:52:10 EDT 2007


En Thu, 05 Apr 2007 18:48:27 -0300, Greg Donald <gdonald at gmail.com>  
escribió:

> Anyone know what's up with environment variables when using ipython?
>
> When I type 'env' and hit return I get a dictionary full of useful
> information (trimmed for brevity):
> But then when try to access the information in the dictionary it
> doesn't seem to exist:
>
> In [2]: env['EDITOR']
> ---------------------------------------------------------------------------
> exceptions.NameError                                 Traceback (most
> recent call last)
>
> /Users/destiney/<ipython console>
>
> NameError: name 'env' is not defined

Try os.environ

-- 
Gabriel Genellina




More information about the Python-list mailing list