[IPython-User] File Not Found Error Running Scripts
Sun Aug 8 22:54:23 CDT 2010
The '%run' command is specific to ipython, and is more similar to
running 'ipython file.py' than calling import from within a script. As
such, it *only* looks in the current working directory, and not in sys.path.
On 08/05/2010 07:28 PM, diegodiaz82 wrote:
> Hello, I am a new user of Python and Ipython. I am having the following
> problem: I created a script (lets call it file.py) and saved it in a folder
> of the path. I have checked that the folder is at the path by calling the
> variable sys.path. I try to run the script by typing in Ipython:
> In[n]: run file.py
> but an error occurs:
> ERROR: File 'file.py' not found.
> I can run it on the Python ambient (not Ipython shell). Am I doing
> something wrong?? Please help me. I am using the windows version of
> Ipython. I currently use Windows 7. I've been looking for an answer to
> this problem but have found any yet.
> Thanks for your help.
More information about the IPython-User