.py and running in Windows:

Discussion in 'Python' started by Michael Yanowitz, Jun 13, 2006.

  1. 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
     
    Michael Yanowitz, Jun 13, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Innes
    Replies:
    7
    Views:
    435
    Alf P. Steinbach
    Sep 19, 2003
  2. Benjamin Rutt
    Replies:
    2
    Views:
    964
    Peter Hansen
    Dec 20, 2005
  3. Andrew Gwozdziewycz

    Re: .py and running in Windows:

    Andrew Gwozdziewycz, Jun 13, 2006, in forum: Python
    Replies:
    2
    Views:
    392
    Fredrik Lundh
    Jun 13, 2006
  4. Cedric Fontaine
    Replies:
    1
    Views:
    320
    Jim Langston
    Dec 11, 2007
  5. Mchizi_Crazy
    Replies:
    2
    Views:
    292
    Sumitava Mukherjee
    Sep 9, 2008
Loading...

Share This Page