How to tell Script to use pythonw.exe ?

Andrew Berg robotsondrugs at gmail.com
Tue Jul 2 21:34:02 EDT 2013


On 2013.07.02 20:20, goldtech wrote:
> Using Windows....
> 
> I want to run a .py file script using pythonw.exe so the DOS box will not open. Is there a way from inside the script to say "run me with pythonw.exe and not python.exe"?
Use the .pyw extension instead of .py.
Also, just FYI, DOS is long dead, and is much, much different under the hood from the console subsystem in modern versions of Windows.

-- 
CPython 3.3.2 | Windows NT 6.2.9200 / FreeBSD 9.1



More information about the Python-list mailing list