ipython problem in opening a file
Eli Bendersky
eliben at gmail.com
Fri Jul 9 09:02:57 EDT 2010
> One of the many things I tried, is as below.
>
> *************************************************
>
>
> f=open('od.txt','w')
> ---------------------------------------------------------------------------
> IOError Traceback (most recent call
> last)
>
> C:\Windows\system32\<ipython console> in <module>()
>
> IOError: [Errno 13] Permission denied: 'od.txt'
>
>
It appears that your ipython runs in C:\Windows\system32
You can find it out for sure by executing "os.getcwd()" after
importing the "os" module.
You may not have permissions in C:\Windows\system32, which is why the
error is printed.
Eli
More information about the Python-list
mailing list