peter at engcorp.com
Sun Jun 8 20:10:10 CEST 2003
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\x.py
> import sys
> print sys.argv
> 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?
Explicitly specifying the directory should always lead
to sys.argv containing the "as invoked" name, but we're
not sure what would happen if it's found via the PATH.
More information about the Python-list