[Tutor] A few Python Mysteries [Reset]
Alan Gauld
alan.gauld at btinternet.com
Mon Dec 26 22:28:27 CET 2011
On 26/12/11 18:57, Wayne Watson wrote:
>>> IOError: [Errno 13] Permission denied:
>>> 'C:\\Users\\Wayne\\.idlerc\\recent-files.lst'
>>
>> Can you open it in Notepad from the same command prompt?
>>
> Opens with Notepad and jEdit from the menu off a py file.
That's not what I asked.
Does it open in Notepad from the same command prompt
where you try to run python? Or indeed any command prompt:
C:\WINDOWS> notepad C:\Users\Wayne\.idlerc\recent-files.lst
> I see recent-files.lst is openable with Word.
Thats nort a surprise, its probably just a text file, so Windows could
associate just about anything!
> I see mydir_math.py is opened with python.exe!!??
> True of other py files.
Which is what you'd expect, after all the default behaviour for a python
script should surely be to get executed by Python? What else would you
expect?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list