On 14 August 2013 18:46, PJ Eby <p...@telecommunity.com> wrote: > Shouldn't naming the file .pyw already work today for that case? > Certainly, the .pyw extension is already suitable for manually > creating GUI scripts in a text editor. Unless there's something > special about how the 'pythonw' executable processes the command line, > it should work just as well for a zipped archive. >
.pyw files can be imported as modules, just like .py, so you hit the issue of scripts named the same as modules that they import. Naming a zipped archive .pyw is no better or worse than naming it .py - both work most of the time, but are disconcerting to users who think the filetype implies "text" and both have the problems associated with being both executable and importable. Paul.
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig