Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Dave Angel
Scott Markwell wrote: On Tue, Oct 13, 2009 at 1:54 PM, Dave Angel wrote: Katt wrote: You were right. I did not have .PY/.PYW in my PATHEXT. I have put it in as suggested. I do have python.exe in my path so that should take care of things. Messing around with the windows registry

Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Scott Markwell
On Tue, Oct 13, 2009 at 1:54 PM, Dave Angel wrote: > Katt wrote: > >> >> You were right. I did not have .PY/.PYW in my PATHEXT. I have put it in >> as >> suggested. I do have python.exe in my path so that should take care of >> things. >> >> Messing around with the windows registry isn't some

Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Dave Angel
Katt wrote: You were right. I did not have .PY/.PYW in my PATHEXT. I have put it in as suggested. I do have python.exe in my path so that should take care of things. Messing around with the windows registry isn't something I want to tackle just yet so I will save that for later. Thank

Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Katt
Message: 2 Date: Tue, 13 Oct 2009 06:24:42 -0400 From: Dave Angel To: Alan Gauld Cc: tutor@python.org, Katt Subject: Re: [Tutor] Shebang (#!) in the first line of a python script Message-ID: <4ad4556a.2020...@ieee.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Alan

Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Dave Angel
Alan Gauld wrote: "Katt" wrote Okay. So if I were to place the following in my Windows XP py v.2.6.2 : $ (name of python script) Then as long as python was in my path I would be able to type the name of the script like a Dos batch file (ex: lowertoupper.py or lowertoupper) instead of havi

Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Alan Gauld
"Katt" wrote Okay. So if I were to place the following in my Windows XP py v.2.6.2 : $ (name of python script) Then as long as python was in my path I would be able to type the name of the script like a Dos batch file (ex: lowertoupper.py or lowertoupper) instead of having to type python l

Re: [Tutor] Shebang (#!) in the first line of a python script

2009-10-13 Thread Katt
From: "Mark K. Zanfardino" To: Katt Cc: tutor@python.org Subject: Re: [Tutor] First line of a python program In computing, a shebang (also called a hashbang, hashpling, pound bang, or crunchbang) refers to the characters "#!" when they are the first two characters in a text file. In a Unix-li