Re: ipython env

2007-04-05 Thread Fernando Perez
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

Re: ipython env

2007-04-05 Thread Larry Bates
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

Re: ipython env

2007-04-05 Thread Greg Donald
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

Re: ipython env

2007-04-05 Thread Gabriel Genellina
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

ipython env

2007-04-05 Thread Greg Donald
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'