~launchpad-pqm/launchpad/devel

11929.10.1 by Gary Poster
add a way to run the bzr command from the local egg.
1
#!${buildout:executable} -S
2
3
# Initialize our paths.
4
${python-relative-path-setup}
5
import sys
6
sys.path.insert(0, ${scripts:parts-directory|path-repr})
7
import site
8
9
# Run the script.
10
import pkg_resources
11
12
bzr_distribution = pkg_resources.get_distribution(
13
    pkg_resources.Requirement.parse('bzr'))
14
15
bzr_distribution.run_script('bzr', globals().copy())