Re: Running Python program without getting Python CE window

"Luke Dunstan" <[email protected]>
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
----- Original Message ----- 
From: "Jeffrey Barish" <[email protected]>
To: <[email protected]>
Sent: Friday, February 24, 2006 11:08 AM
Subject: [PythonCE] Running Python program without getting Python CE window


> Whenever I run a Python application, I get a window titled "Python CE" 
> that
> seems to capture stdout.  Is it called the console?  I would like to run 
> my
> application without getting that window.  I had the impression that this
> window would not appear if I ran the application using pythonw.  To that 
> end,
> I changed the first line of my application to
>
> #! /usr/bin/env pythonw
>
> (instead of /usr/bin/env/python).  Changing this line has no effect in 
> either
> CE or XP.  What is the correct procedure?

As somebody else mentioned, that is a Unix-specific feature. In Windows XP 
you can rename the file to .pyw to run it automatically with pythonw.exe. On 
Windows CE there is no standard way but this might help:

python /nopcceshell program.py

Luke
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.