Larry Bates wrote:
> Greg Donald wrote:
>> Anyone know what's up with environment variables when using ipython?
[...]
> In Cpython you get this with:
>
> import os
> os.environ['EDITOR']
Yup, same in ipython :) Just to clarify, env is just a convenience function
in ipython that simply does thi
Greg Donald wrote:
> 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):
>
> In [1]: env
> Out[1]:
> {'EDITOR': '/usr/bin/vim',
> [...]
> '_': '/Library/Frameworks/Python.f
On 4/5/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> > NameError: name 'env' is not defined
>
> Try os.environ
Thanks.
--
Greg Donald
http://destiney.com/
--
http://mail.python.org/mailman/listinfo/python-list
En Thu, 05 Apr 2007 18:48:27 -0300, Greg Donald <[EMAIL PROTECTED]>
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 infor
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):
In [1]: env
Out[1]:
{'EDITOR': '/usr/bin/vim',
[...]
'_': '/Library/Frameworks/Python.framework/Versions/Current/bin/ipython'