如何安装bzr插件?

时间:2012-07-12 14:43:55

标签: python bazaar bazaar-plugins

对于新手来说,安装bzr插件推送和更新所需的步骤并不清楚。

插件描述为here in the bzr documentation,还有另一个documentation page that explains how to install plugins

但是没有明确的安装指南。

1 个答案:

答案 0 :(得分:3)

  • 找到插件目录

    python
    >>> from bzrlib import plugin
    >>> list_of_bzr_plugin_paths = [os.path.abspath(p)
    ... for p in plugin.get_standard_plugins_path()]
    

    库(在ubuntu上)是:

    • $HOME/.bazaar/plugins'
    • /usr/lib/python2.7/dist-packages/bzrlib/plugins'

*从启动板安装

    bzr branch lp:bzr-push-and-update 

<击>

  • 从启动板安装,重命名目录以避免错误。

    bzr branch lp:bzr-push-and-update ~/.bazaar/plugins/push_and_update