← Back to team overview

launchpad-dev team mailing list archive

Re: Finding the right 'bzr' at runtime for 'lp-forking-service'

 

On Tue, Nov 23, 2010 at 10:41 PM, John Arbash Meinel
<john@xxxxxxxxxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> As part of the forking service work, I'm trying to put together the init
> script. The current blocker is finding the 'bzr' script itself to run.
>
> As near as I can tell, the path to use is:
>  $launchpad/eggs/bzr-2.2.1-py2.6-linux-i686.egg/EGG-INFO/scripts/bzr
>

Look in lp.codehosting.sshserver.launch_smart_server to see what we do already:

{{{
from lp.codehosting import get_bzr_path
...
    python_command = "%(root)s/bin/py %(bzr)s" % {
            'root': config.root,
            'bzr': get_bzr_path(),
            }
}}}

It's probably not the right way, but it does work.

jml



Follow ups

References