[Tutor] windows and python and shebangs, oh my!

John Fouhy john at fouhy.net
Thu Apr 5 04:35:20 CEST 2007


On 05/04/07, Kirk Bailey <deliberatus at verizon.net> wrote:
> So work with me, windows Pythonistas. CAN I rely on windows definitely
> and reliably having .py files associated with the windows python
> interpreter, so the script does not need a shebang declaration? Can I
> skip this part of the configure/install process of the application and
> count on it working reliably?

As far as I'm aware, Microsoft Windows doesn't follow the shebang
custom at all.  IOW, that line doesn't do anything.  You should be
able to rely on the file extensions if python was installed normally
(i.e. with the installer).

-- 
John.


More information about the Tutor mailing list