launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #05869
Re: Finding the right 'bzr' at runtime for 'lp-forking-service'
-
To:
Jonathan Lange <jml@xxxxxxxxxxxxx>
-
From:
John Arbash Meinel <john@xxxxxxxxxxxxxxxxx>
-
Date:
Wed, 24 Nov 2010 10:23:26 -0600
-
Cc:
Launchpad Community Development Team <launchpad-dev@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<AANLkTi=tPC-tpZhyjWwRqy6EJtCrrO2+wPbQ4w8j7fNa@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/24/2010 6:38 AM, Jonathan Lange wrote:
> 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
>
Which is exactly what I posted originally (find the dir of
bzrlib.__file__ and track backwards).
I was told on IRC that creating a 'bin/bzr' is more tasteful, so I guess
now I'll be tracking that down.
Can you give any hints Gary?
John
=:_>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkztO/4ACgkQJdeBCYSNAANRcwCgnl6ehOe+O68NEP38GRh7fF3B
lrQAn0Z6IQBo9X1KHcTJdHsHBrwbDuqr
=+6iR
-----END PGP SIGNATURE-----
Follow ups
References