Execute script from ipython

Johan Ekh ekh.johan at gmail.com
Fri Aug 19 15:00:38 CEST 2011

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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110819/07023b99/attachment.html>

More information about the Python-list mailing list