Re: Running Scripts vs Interactive mode

2011-02-24 Thread grobs456
On Feb 24, 11:32 am, Dave Angel wrote: > On 01/-10/-28163 02:59 PM, grobs456 wrote: > > > > > #I set my system environment variables to: > > > VARIABLE           VALUE > > PYTHON_HOME                c:\python27\python.exe > > PATH                       ...;%PYTHON_HOME% > > > #after also trying t

Re: Running Scripts vs Interactive mode

2011-02-24 Thread Dave Angel
On 01/-10/-28163 02:59 PM, grobs456 wrote: #I set my system environment variables to: VARIABLEVALUE PYTHON_HOME c:\python27\python.exe PATH...;%PYTHON_HOME% #after also trying this: VARIABLEVALUE PYTHON_HOME c:\python2

Re: Running Scripts vs Interactive mode

2011-02-24 Thread Benjamin Kaplan
On Thu, Feb 24, 2011 at 10:34 AM, grobs456 wrote: > c:\dev\python>python HelloWorld.py > 'python' is not recognized as an internal or external command, > operable program or batch file. > > #I then tried this for a success!: > > c:\dev\python>c:\python27\python.exe HelloWorld.py > Hello WOrld! > >

Re: Running Scripts vs Interactive mode

2011-02-24 Thread grobs456
c:\dev\python>python HelloWorld.py 'python' is not recognized as an internal or external command, operable program or batch file. #I then tried this for a success!: c:\dev\python>c:\python27\python.exe HelloWorld.py Hello WOrld! c:\dev\python>python HelloWorld.py 'python' is not recognized as an

Re: Running Scripts vs Interactive mode

2011-02-24 Thread scattered
On Feb 23, 5:22 pm, grobs456 wrote: > Hi, > > I am trying to work through the tutorial at:http://docs.python.org/tutorial/ > > The issue I am facing is with regards to the discussion about > "Invoking the Interpreter" and "Executable Python Scripts". It was > rather hazy in my opinion. > > see:htt

Re: Re: Running Scripts vs Interactive mode

2011-02-23 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Ben Finney wrote: grobs456 writes: I realize I can double click on a .py file and Windows treats it as an executable but the command prompt pops in and out so quickly that I can't see the results of my script. Don't do that, then :-) You can open a persistent term

Re: Running Scripts vs Interactive mode

2011-02-23 Thread Terry Reedy
On 2/23/2011 5:22 PM, grobs456 wrote: Hi, I am trying to work through the tutorial at: http://docs.python.org/tutorial/ The issue I am facing is with regards to the discussion about "Invoking the Interpreter" and "Executable Python Scripts". It was rather hazy in my opinion. An alternative to

Re: Running Scripts vs Interactive mode

2011-02-23 Thread Rhodri James
On Wed, 23 Feb 2011 23:54:22 -, Ben Finney wrote: grobs456 writes: I realize I can double click on a .py file and Windows treats it as an executable but the command prompt pops in and out so quickly that I can't see the results of my script. Don't do that, then :-) You can open a pe

Re: Running Scripts vs Interactive mode

2011-02-23 Thread Ben Finney
grobs456 writes: > I am trying to work through the tutorial at: > http://docs.python.org/tutorial/ Excellent! I heartily encourage everyone to do this when learning Python: *work through* (not just read) the tutorial. Good for you! > I realize I can double click on a .py file and Windows treats

Re: Running Scripts vs Interactive mode

2011-02-23 Thread n00m
Add into each your *.py script and as the very last line this: raw_input('Press any key to exit...') Or, even better, I'd recommend this free Python Editor: http://pythonide.stani.be/ SPE IDE - Stani's Python Editor Free python IDE for Windows,Mac & Linux with UML,PyChecker,Debugger, GUI design,Bl

Running Scripts vs Interactive mode

2011-02-23 Thread grobs456
Hi, I am trying to work through the tutorial at: http://docs.python.org/tutorial/ The issue I am facing is with regards to the discussion about "Invoking the Interpreter" and "Executable Python Scripts". It was rather hazy in my opinion. see: http://docs.python.org/tutorial/interpreter.html I r