Matthew Sherborne wrote:
> Rename the script's extension to .pyw > > This will make pythonw.exe run it instead of python.exe. This will remove > the command prompt like window. > > > We're running a python script (version 2.1) from a C++ > program...........the > > call looks something like this: > > > > python d:\OurScriptName d:\FileWeAreProcessing Or, if you're running it using a command line (as shown above), then you can simply use pythonw instead of python -- $ pythonw d:\OurScriptName d:\FileWeAreProcessing Changing the extension won't magically make the console window disappear, but the .pyw extension is registered to pythonw.exe (instead of python.exe for the .py extension). In that case, when you doubleclick the script in Explorer (or use "start myscript.pyw" from a command line), the file-type lookup in Explorer results in executing pythonw.exe. If you're explicitly invoking python.exe, you'll get a console window regardless of the extension of the script. Jeff Shannon Technician/Programmer Credit International _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs