[Python-Dev] 3.2.1 encoding surprise (original) (raw)

Paul Moore p.f.moore at gmail.com
Wed Jul 20 13:28:23 CEST 2011


On 20 July 2011 10:17, Glenn Linderman <v+python at 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.



More information about the Python-Dev mailing list