A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-July/112359.html below:

[Python-Dev] 3.2.1 encoding surprise

[Python-Dev] 3.2.1 encoding surprise [Python-Dev] 3.2.1 encoding surprisePaul 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4