Re: Execute script from ipython

2011-08-22 Thread Johan Ekh
Thanks Chris! I tried using "!" instead of "run". It works but with a significant performance penalty. Best regards, Johan On Fri, Aug 19, 2011 at 5:11 PM, Chris Rebert wrote: > On Fri, Aug 19, 2011 at 6:00 AM, Johan Ekh wrote: > > Hi all, > > I have a script "myscript.py" located in "/usr/lo

Re: Execute script from ipython

2011-08-19 Thread Chris Rebert
On Fri, Aug 19, 2011 at 6:00 AM, Johan Ekh wrote: > Hi all, > I have a script "myscript.py" located in "/usr/local/bin" on my linux box. > I can execute it in ipython with > > run /usr/local/bin/myscript.py > > but not with > > run myscript.py > > even though /usr/local/bin is in my $PATH and in m

Execute script from ipython

2011-08-19 Thread Johan Ekh
Hi all, I have a script "myscript.py" located in "/usr/local/bin" on my linux box. I can execute it in ipython with run /usr/local/bin/myscript.py but not with run myscript.py even though /usr/local/bin is in my $PATH and in my $PYTHONPATH. What should I do to correct this? Best regards, Joha