Re: .py and running in Windows:
On Tuesday 13 June 2006 07:04, Michael Yanowitz wrote: > Thanks. > >XP looks to be the same as 2000. > Works as expected now. Thank You. > > Not sure what this 'thread' issue is. > I never specified a thread. I think perhaps though because I did > open another message in this mailing list (to get the correct > email address to send to), but I deleted all its contents i put > it under that other thread, however there is no indication of a > thread in Outlook email. I am sorry if it came up in another > thread that was not my intention. > To start a new thread use a new email: even though you deleted the contents, In-Reply-To: and References: headers remain in the email, and when they are present, they determine the thread rather than the Subject: header. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf > Of Iain King > Sent: Tuesday, June 13, 2006 9:48 AM > To: python-list@python.org > Subject: Re: .py and running in Windows: > > > > Andrew Gwozdziewycz wrote: > > You'll have better results posting this to it's own thread. > > [...] -- http://mail.python.org/mailman/listinfo/python-list
Re: .py and running in Windows:
Michael Yanowitz wrote: > I never specified a thread. I think perhaps though because I did > open another message in this mailing list (to get the correct > email address to send to), but I deleted all its contents i put > it under that other thread, however there is no indication of a > thread in Outlook email. I am sorry if it came up in another > thread that was not my intention. your message contains the line In-Reply-To: <[EMAIL PROTECTED]> which indicates that you pressed "reply to", rather than "new message". changing the subject doesn't change that; your mail program still does what you asked it to do. -- http://mail.python.org/mailman/listinfo/python-list
Re: .py and running in Windows:
i modify "C:\Python\python.exe" -i "%1" %* to cmd /k;"C:\Python\python.exe" -i "%1" %* or cmd /k;"C:\Python\python.exe" "%1" %* just a little trick. On 13 Jun 2006 06:48:23 -0700, Iain King <[EMAIL PROTECTED]> wrote: Andrew Gwozdziewycz wrote:> You'll have better results posting this to it's own thread.> He certainly should have, but since I've read it here anyway:> On Jun 13, 2006, at 9:29 AM, Michael Yanowitz wrote:>> > Hello:> >> > Presently in my Windows 2000 system, when I double-click on a > > .py file (open it) it automatically runs it in Python. I would> > like to change that behavour. That is fine for .pyc file, but> > for .py files, I would either like to have it run in Python but > > return to the Python shell prompt when finished rather than> > exit the shell. How do I do that?> > Or would it cause a problem (so that Python no longer works) if> > I change the default .py extension to open in an editor rather > > than execute it if I open it?> >In an explorer window, go to Tools->Folder OptionsGo to the File Types tab, find the PY extension, then click onAdvanced*Select the 'open' action, and click Edit... change the 'Application used to perform action', inserting a '-i'between the exe and the first parameter. For example, I changed mineto:"C:\Python\python.exe" -i "%1" %*The exact line will depend on where your python.exe is.OK all the dialogs you've opened, then double click a .py file to testit.*I'm using WinXP, so the exact name of some of the buttons may bedifferent for you.Iain-- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: .py and running in Windows:
The only problem I know of for changing PY files to open up in an editor is that it could screw up Python as a CGI with Apache under Windows. To change file associations, right click and go to "Open With." Choose your text editor and click "always open with this problem" at the bottom. And easy way to run your scripts is to open a console (Start->Run->type "cmd.exe" and hit OK). Type "python" and drag&drop your .py file into the console. It will copy the path name ("C:\programming\python stuff\myproject\mypython.py"). Michael Yanowitz wrote: > Hello: > > Presently in my Windows 2000 system, when I double-click on a > .py file (open it) it automatically runs it in Python. I would > like to change that behavour. That is fine for .pyc file, but > for .py files, I would either like to have it run in Python but > return to the Python shell prompt when finished rather than > exit the shell. How do I do that? > Or would it cause a problem (so that Python no longer works) if > I change the default .py extension to open in an editor rather > than execute it if I open it? > > Thanks: > Michael Yanowitz -- http://mail.python.org/mailman/listinfo/python-list
RE: .py and running in Windows:
Thanks. XP looks to be the same as 2000. Works as expected now. Thank You. Not sure what this 'thread' issue is. I never specified a thread. I think perhaps though because I did open another message in this mailing list (to get the correct email address to send to), but I deleted all its contents i put it under that other thread, however there is no indication of a thread in Outlook email. I am sorry if it came up in another thread that was not my intention. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Iain King Sent: Tuesday, June 13, 2006 9:48 AM To: python-list@python.org Subject: Re: .py and running in Windows: Andrew Gwozdziewycz wrote: > You'll have better results posting this to it's own thread. > He certainly should have, but since I've read it here anyway: > On Jun 13, 2006, at 9:29 AM, Michael Yanowitz wrote: > > > Hello: > > > > Presently in my Windows 2000 system, when I double-click on a > > .py file (open it) it automatically runs it in Python. I would > > like to change that behavour. That is fine for .pyc file, but > > for .py files, I would either like to have it run in Python but > > return to the Python shell prompt when finished rather than > > exit the shell. How do I do that? > > Or would it cause a problem (so that Python no longer works) if > > I change the default .py extension to open in an editor rather > > than execute it if I open it? > > In an explorer window, go to Tools->Folder Options Go to the File Types tab, find the PY extension, then click on Advanced* Select the 'open' action, and click Edit... change the 'Application used to perform action', inserting a '-i' between the exe and the first parameter. For example, I changed mine to: "C:\Python\python.exe" -i "%1" %* The exact line will depend on where your python.exe is. OK all the dialogs you've opened, then double click a .py file to test it. *I'm using WinXP, so the exact name of some of the buttons may be different for you. Iain -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: .py and running in Windows:
Andrew Gwozdziewycz wrote: > You'll have better results posting this to it's own thread. > He certainly should have, but since I've read it here anyway: > On Jun 13, 2006, at 9:29 AM, Michael Yanowitz wrote: > > > Hello: > > > > Presently in my Windows 2000 system, when I double-click on a > > .py file (open it) it automatically runs it in Python. I would > > like to change that behavour. That is fine for .pyc file, but > > for .py files, I would either like to have it run in Python but > > return to the Python shell prompt when finished rather than > > exit the shell. How do I do that? > > Or would it cause a problem (so that Python no longer works) if > > I change the default .py extension to open in an editor rather > > than execute it if I open it? > > In an explorer window, go to Tools->Folder Options Go to the File Types tab, find the PY extension, then click on Advanced* Select the 'open' action, and click Edit... change the 'Application used to perform action', inserting a '-i' between the exe and the first parameter. For example, I changed mine to: "C:\Python\python.exe" -i "%1" %* The exact line will depend on where your python.exe is. OK all the dialogs you've opened, then double click a .py file to test it. *I'm using WinXP, so the exact name of some of the buttons may be different for you. Iain -- http://mail.python.org/mailman/listinfo/python-list
Re: .py and running in Windows:
You'll have better results posting this to it's own thread. On Jun 13, 2006, at 9:29 AM, Michael Yanowitz wrote: > Hello: > > Presently in my Windows 2000 system, when I double-click on a > .py file (open it) it automatically runs it in Python. I would > like to change that behavour. That is fine for .pyc file, but > for .py files, I would either like to have it run in Python but > return to the Python shell prompt when finished rather than > exit the shell. How do I do that? > Or would it cause a problem (so that Python no longer works) if > I change the default .py extension to open in an editor rather > than execute it if I open it? > > Thanks: > Michael Yanowitz > > -- > http://mail.python.org/mailman/listinfo/python-list --- Andrew Gwozdziewycz [EMAIL PROTECTED] http://23excuses.com | http://ihadagreatview.org | http://and.rovir.us -- http://mail.python.org/mailman/listinfo/python-list
.py and running in Windows:
Hello: Presently in my Windows 2000 system, when I double-click on a .py file (open it) it automatically runs it in Python. I would like to change that behavour. That is fine for .pyc file, but for .py files, I would either like to have it run in Python but return to the Python shell prompt when finished rather than exit the shell. How do I do that? Or would it cause a problem (so that Python no longer works) if I change the default .py extension to open in an editor rather than execute it if I open it? Thanks: Michael Yanowitz -- http://mail.python.org/mailman/listinfo/python-list