[PATCH] Plugins, yet again

John Arbash Meinel john at arbash-meinel.com
Sun Jun 19 18:16:10 BST 2005


John A Meinel wrote:

> Alright, so I've modified the plugin code according to all of the
> current advice.
>
I would like to make a small change to this. That the default plugin
directory should be:
~/.bzr.conf/plugins

As mentioned in the past, it can be desireable to revision control one's
home directory. Therefore the home configuration directory should be
different from the name of the working directory control file.

John
=:->

>+def load_plugins():
>+    """Find all python files which are plugins, and load them
>+
>+    The environment variable BZR_PLUGIN_PATH is considered a delimited set of
>+    paths to look through. Each entry is searched for *.py files (and whatever
>+    other extensions are used in the platform, such as *.pyd).
>+    """
>+    bzrpath = os.environ.get('BZR_PLUGIN_PATH', os.path.expanduser('~/.bzr/plugins'))
>
>
Should be:

+    bzrpath = os.environ.get('BZR_PLUGIN_PATH',
os.path.expanduser('~/.bzr.conf/plugins'))

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050619/39b1b87f/attachment.pgp 


More information about the bazaar mailing list