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

Nick Coghlan ncoghlan at gmail.com
Mon Mar 7 06:34:44 CET 2011


On Mon, Mar 7, 2011 at 3:19 PM, Mark Hammond <skippy.hammond at gmail.com> wrote:
> Without putting too much thought into it, I think a simple scheme could work
> where the path must either be "/usr/bin/python[23]?" or a fully-qualified
> path to a Python executable.  IIUC, this should allow most scripts to have a
> shebang line that "does the right thing" on *nix and Windows systems while
> still offering maximum flexibility on Windows.

Such a scheme should be able to handle "/usr/bin/env python2" and
variants as well.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list