[Distutils] small improvement of the script functionality under win32

Phillip J. Eby pje at telecommunity.com
Sat Apr 2 23:05:21 CEST 2005

At 10:36 PM 4/2/05 +0200, Vivian De Smedt wrote:
>3) The other sub platforms (Dos, Win95, Win98)
>I do have any satisfactory solution maybe the proposition of Phillip J. 
>Eby contains idea but not having access to any of these platform I'm in a 
>bad position to be able to propose any solutions.

These could be resolved by creating a *second* file with a .bat extension 
that invokes python on the file without the extension, and passed the 
arguments, e.g.:

     @echo off
     C:\Python24\Python C:\Python24\Scripts\scriptnamehere %0 %1 %2 %3 %4 
%5 %6 %7 %8 %9

This should work on DOS and Windows 98; perhaps someone else can double 
check that it works on NT-based systems.  If so, then this is a viable 
approach for all win32 platforms.

More information about the Distutils-SIG mailing list