program path

Gerhard Häring gh at
Sun Jun 8 23:11:37 CEST 2003

Peter Hansen wrote:
> Gerhard Häring wrote: 
>>Peter Hansen wrote:
>>>Can anyone with access to a WinNT/XP machine that can invoke
>>>scripts without explicitly specifying "python.exe" in the
>>>command line add to this?
>>C:\>copy con: tmp\
>>import sys
>>print sys.argv[0]
>>         1 file(s) copied.
>>Microsoft Windows XP [Version 5.1.2600]
> Thanks Gerhard, but could you please try running it via
> a directory available only via PATH? [...]

C:\>set path=c:\tmp;%PATH%


Seems to work on XP.

-- Gerhard

More information about the Python-list mailing list