On 20 July 2011 10:17, Glenn Linderman <v+pyt...@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).
Just as a reference point: PS 12:26 D:\Data >type .\tt.py import sys 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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com