[Distutils] small improvement of the script functionality under win32

Bob Ippolito bob at redivi.com
Wed Mar 30 23:48:27 CEST 2005


On Mar 30, 2005, at 4:28 PM, Trent Mick wrote:

> [Vivian De Smedt wrote]
>> Could we say that if:
>>
>>     os.environ["os"] == "Windows_NT"
>>
>> the patch improve the existing situation?
>
> I didn't really read the patch, so I can't give an opinion, but there 
> is
> no standard OS environment variable on, e.g. Win98, so that would (at
> the least) have to be:
>
>     os.environ.get("OS") == "Windows_NT"
>
> Still, as I said, the differentiate is more proper on what shell is
> being used.

Also important to consider: what happens to COMSPEC when you're using a 
cygwin shell?  Will a cygwin shell run .cmd files?

(I don't really use Windows anymore...)

-bob



More information about the Distutils-SIG mailing list