[Distutils] small improvement of the script functionality under win32

Paul Moore p.f.moore at gmail.com
Sat Apr 2 11:45:40 CEST 2005

On Apr 2, 2005 9:06 AM, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 08:37 AM 4/2/05 +0200, Vivian De Smedt wrote:
> >The change in the she bang will happend only if
> >  - the win32 platform is detected (os.name == "nt")
> >  - the platform is win NT son (os.environ["OS"] == "Windows_NT")
> You really need to check that COMSPEC points to cmd.exe, since as someone
> pointed out you can actually have an NT machine using command.com as its
> COMSPEC, which means it won't be able to run this either.

And just to be annoying, my COMSPEC (sometimes) points to 4NT.EXE, and
I can use this feature.

I support the idea, but it may not be practical. To be honest,
shipping the files with a .py extension (which is directly associated
with Python) in the first place is probably a better answer.


More information about the Distutils-SIG mailing list