[Python-Dev] [PEPs] Support the /usr/bin/python2 symlink upstream

"Martin v. Löwis" martin at v.loewis.de
Tue Mar 8 10:36:24 CET 2011


Am 08.03.2011 01:00, schrieb Michael Foord:
> On 07/03/2011 23:52, Greg Ewing wrote:
>> Michael Foord wrote:
>>
>>> - I doubt calling it python.exe will fly, but I'm not sure. If so
>>> what will you call what is currently 'python.exe'? - if not then
>>> "python foo.py" on the command line will *still* not work...
>>
>> However, if it's installed as the exe associated with the .py
>> and .pyw extensions, then simply 'foo.py' on the command line
>> *will* work, and will work better than it does now.
>>
> So long as '.py' and '.pyw' are set in the PATHEXT environment variable.
> (Which again the Python installer doesn't do by default.)

Running foo.py works fine with the current installers (just try to see
for yourself). You don't need PATHEXT for that.

Regards,
Martin


More information about the Python-Dev mailing list