-----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 > <[email protected]> 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----- _______________________________________________ Mailing list: https://launchpad.net/~launchpad-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-dev More help : https://help.launchpad.net/ListHelp

