On Tue, Mar 8, 2011 at 1:30 AM, Barry Warsaw <ba...@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 | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ 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