July 20, 2011
11:28 a.m.
On 20 July 2011 10:17, Glenn Linderman <v+python@g.nevcal.com> wrote:
However, the following fails: py foo.py It fails, because foo.py is not found. Instead, I have to specify: py d:\path\to\foo.py This is annoying, py should walk the PATH for unqualified files (the Windows PATH implicitly includes the current directory, of course, but if it were in the current directory, it would just work).
type .\tt.py import sys
Just as a reference point: PS 12:26 D:\Data print sys.argv PS 12:26 D:\Data
py tt.py ['tt.py']
This is Windows XP 32-bit, using Powershell as my shell. Also works in cmd.exe. Paul.