[Distutils] How to handle launcher script importability?

Paul Moore p.f.moore at gmail.com
Wed Aug 14 20:14:09 CEST 2013


On 14 August 2013 18:46, PJ Eby <pje at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130814/3e4e7665/attachment-0001.html>


More information about the Distutils-SIG mailing list