Agile Tortoise

Greg Pierce’s blog

« Darn that Seth Dillingham      NPR Search Engine Series »

Python on Windows without prompt window

This seems like it should be a no brainer, but I can’t seem to figure out how to execute a python script on Windows without a command prompt window getting opened. It exits as soon as the script is done, but I don’t really want it to show at all. Anyone know how to do this? It seems like it should be a command line flag for the python interpreter, but I can’t figure out what it is.

Monday, April 12th, 2004 at 10:58 am and is filed under Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

2 Responses to “Python on Windows without prompt window”

  1. Jim Roepcke Says:
    April 13th, 2004 at 9:22 am

    On Apr 12, 2004, at 10:04 AM, Greg Pierce wrote:

    > This seems like it should be a no brainer, but I can’t seem to figure
    > out how to execute a python script on Windows without a command prompt
    > window getting opened. It exits as soon as the script is done, but I
    > don’t really want it to show at all. Anyone know how to do this? It
    > seems like it should be a command line flag for the python
    > interpreter, but I can’t figure out what it is.

    I haven’t tried this, but maybe calling pythonw.exe instead of
    python.exe would help?

    Jim

  2. Greg Pierce Says:
    April 13th, 2004 at 9:48 am

    On Apr 13, 2004, at 10:22 AM, Jim Roepcke wrote:

    > I haven’t tried this, but maybe calling pythonw.exe instead of
    > python.exe would help?

    we have a winner!

    thx. figured it was something easy.

    g.

Leave a Reply