[IPython-user] PYTHONSTARTUP and ipython

Fernando Perez fperez.net@gmail....
Fri Sep 14 17:20:41 CDT 2007


On 9/14/07, Steve Lianoglou <lists.steve@arachnedesign.net> wrote:

> Can't you just pull a:
> execfile os.environ['PYTHONSTARTUP']

That won't quite work, since the ipythonrc syntax is a bastardized
one, but you can use:

execute import os
execute execfile(os.environ['PYTHONSTARTUP'])

those two statements will get run as plain code, and will do the job.

Cheers,

f


More information about the IPython-user mailing list