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-March/108933.html below:

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

[Python-Dev] Support the /usr/bin/python2 symlink upstream [Python-Dev] Support the /usr/bin/python2 symlink upstreamNick Coghlan ncoghlan at gmail.com
Mon Mar 7 23:25:50 CET 2011
On Tue, Mar 8, 2011 at 1:30 AM, Barry Warsaw <barry at python.org> wrote:
> On Mar 04, 2011, at 12:00 PM, Toshio Kuratomi wrote:
>
>>Actually, my post was saying that these two can be decoupled.  ie: It's
>>possible to not have /usr/bin/python while still allowing users to type
>>python at a shell prompt and get the interpreter.
>>
>>This is done by either redefining the PATH to include the directory that the
>>interpreter named "python" is in or by creating an alias for python to the
>>proper interpreter.
>
> I personally would prefer aliasing rather than $PATH manipulation.

Toshio's suggestion wouldn't work anyway - the "/usr/bin/env python"
idiom will pick up a "python" alias no matter where it lives on $PATH.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
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