[PATCH] use "! /usr/bin/env python" in generate_docs.py

Robert Widhopf-Fenk hack at robf.de
Wed May 10 01:18:05 BST 2006


On Wednesday, May 10, 2006 at 02:30:45, Lars Wirzenius wrote:
> ke, 2006-05-10 kello 00:33 +0200, Robert Widhopf-Fenk kirjoitti:
> > === modified file 'generate_docs.py'
> > --- generate_docs.py	
> > +++ generate_docs.py	
> > @@ -1,4 +1,4 @@
> > -#!/usr/bin/python
> > +#! /usr/bin/env python
> 
> On my system, this will still invoke version 2.3 of Python. To get
> Python 2.4, the script needs invoke the command python2.4
> explicitly.
> 
> > Absolute paths should not be used for python.
> 
> I have not found any better solution than having a configure script
> determine the full path to the preferred interpreter and then
> putting that into the hashbang upon installation.
> 
> I'm not objecting to the patch, though, even if it doesn't solve the
> problem for me.

But now you can "ln -s `which python2.4` ~/bin",
i.e. you may control which version is called by
modifying PATH and/or setting symlinks.

Adding the code in bzr.dev/bzr which "searches" for a 2.4
version would have been overkill for me. 

Robert




More information about the bazaar mailing list